An open API service indexing awesome lists of open source software.

https://github.com/magickbase/platform-api

Web3Platform API client
https://github.com/magickbase/platform-api

Last synced: about 1 year ago
JSON representation

Web3Platform API client

Awesome Lists containing this project

README

          

# Magickbase Platform API

## Usage with tRPC

```ts
import { TRPCRouter } from '@magickbase/p';
import { createTRPCClient, httpBatchLink } from '@trpc/client';
import SuperJSON from 'superjson';

const client = createTRPCClient({
links: [
httpBatchLink({
url: `https://api-endpoint.domain/api/trpc`,
transformer: SuperJSON,
headers: {
Authorization: `Bearer `,
},
}),
],
});
```

It is recommended to use tRPC and TypeScript to interact with the platform API for a better development experience

![](./assets/p-client.gif)

## Import this Repo

```json
{
"dependencies": {
"@magickbase/p": "github:magickbase/platform-api"
}
}
```