Search
⌃K

Javascript/Typescript SDK

TODO: Description of Meem 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