Skip to content

Magickbase/platform-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Magickbase Web3 Platform API

Usage with TRPC

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

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

If you are using TypeScript we recommend using TRPC to interact with the API for a better development experience.

Import this Repo

{
  "dependencies": {
    "@magickbase/p": "github:<org>/web3platform"
  }
}

About

Web3Platform API client

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published