Skip to main content

Example

Methods

Each method has its own reference page:
  • ready() - resolve once the account exists and the session is established.
  • account() - the provisioned account, or null until ready() resolves.
  • sessionExpiresAt() - when the current session lapses.
  • refreshSession() - start a fresh session; the remedy for wallet.session_expired.
  • claim() - send a claim the API prepared for this wallet.
  • transfer() - send a transfer the API prepared for this wallet.
  • destroy() - end the session and remove the frame.
The wallet sends only operations the API has already prepared and authorized, named by their id. Nothing in this API accepts an address, an amount, or a payload. Every send is covered by Endstate; the customer never pays gas.