Other useful endpoints

The account object returned by the SDK is an extended starknet.js account object. It contains functions that might be useful for you.

  1. Outside execution

This function accepts a list of Call objects and returns the calldata/payload required to perform an execute_from_outside .

await account.getOutsideExecutionPayload({calls: [calls]})
  1. Sign Messages from outside

Takes a typedData object and a list of Call .

Returns

await account.signMessageFromOutside(typedData, [calls])
  1. Deployment of account

By default, Ready subsidises the deployment of all the accounts. If the deployment fails on our side, it is possible to deploy the account for your users. You can get the deployment data either from the returned object of the connect() function of the SDK or from this endpoint:

await account.getDeploymentPayload()

This will return a DeployAccountContractPayload which will allow you to deploy the account as explained here: Deploy accounts on behalf of users

Last updated

Was this helpful?