Skip to content

Latest commit

 

History

History
80 lines (52 loc) · 1007 Bytes

javascript-typescript-sdk.md

File metadata and controls

80 lines (52 loc) · 1007 Bytes
description
TODO: Description of Meem SDK

Javascript/Typescript SDK

Login

import { MeemSDK } from '@meemproject/sdk'

const result = await sdk.id.login({
    message: "Welcome to Meem!", // The message that will appear in the user's wallet to sign
    signer: {...}, // The signer <JsonRpcSigner>
    chainId: 5, // The chainId
    uri: window.location.href; // The URI where the login is taking place
})

/**
result: {
    signature: string;
    authSig: {
        sig: string;
        derivedVia: string;
        signedMessage: string;
        address: string;
    };
    jwt: string;
    messageToSign: string;
}
*/

Create an Agreement

TODO

Bulk Mint Agreement Tokens

TODO

Reinitialize an Agreement

TODO

Create an Agreement Role

TODO

Bulk Mint Agreement Role Tokens

TODO

Reinitialize an Agreement Role

TODO