Skip to main content
Please note: The Starknet RPC standard is still under review and specifications may change. Implementation details and method signatures are subject to updates.
We define new types for starknet:
  • FELT, a number represented by a hex string. Prefixed with 0x. It can be left padded with zeroes or not. It follows the Cairo Field Element spec
  • ABI, a representation of a Starknet contract’s interface. As Starknet ABI Spec

starknet_requestAddInvokeTransaction

Requests the wallet to sign and submit a INVOKE transaction This request might be processed before the account is deployed. In that scenario the wallet will ask the user to do the deployment and the requested transaction.

Parameters

Example Parameters

Returns

  1. FELT, transaction_hash : The hash of the transaction submitted by the wallet

Example

starknet_signTypedData

Request the wallet to sign an Off-chain message as defined here Starknet Off-chain message spec. This is similar to Ethereum’s EIP-712 This request might be processed before the account is deployed. In that scenario the wallet will ask the user to do the deployment and sign the data

Parameters

account, message

Example Parameters

Returns

  1. FELT[], signature : Signature as an array of Felts

Example