NEAR JSON-RPC Methods
publicKey
references the underlying FullAccess
key linked to each account.
Array
- Array of accounts:
1.1. Object
1.1.1. accountId
: String
- The account name to which the publicKey corresponds as plain text
1.1.2. publicKey
: String
- The public counterpart of the key used to sign, expressed as a string with format <key-type>:<base58-key-bytes>
FunctionCall
access keys can be created for one or more accounts to greatly improve the UX. While this could be achieved with signTransactions
, it suggests a direct intention that a user wishes to sign in to a dApp’s smart contract.
Object
- Sign In parameters:
1.1. permission
: Object
- Function call key permission parameters
1.1.1. receiverId
: String
- smart contract for which the function call access key will be created
1.1.2. methodNames
: Array<String>
- list of methods that can be called on the smart contract
1.2. accounts
: Array
- list of accounts for which a FunctionCall access key will be added:
1.2.1. Object
- Account
1.2.1.1. accountId
: String
- The account name to which the publicKey corresponds as plain text
1.2.1.2. publicKey
: String
- The public counterpart of the key used to sign, expressed as a string with format <key-type>:<base58-key-bytes>
FunctionCall
access keys created with signIn
. While this could be achieved with signTransactions
, it suggests a direct intention that a user wishes to sign out from a dApp’s smart contract.
Array
- Array of accounts:
1.1. Object
1.1.1. accountId
: String
- The account name to which the publicKey corresponds as plain text
1.1.2. publicKey
: String
- The public counterpart of the key used to sign, expressed as a string with format <key-type>:<base58-key-bytes>
signTransaction
must be encoded.
Object
- Signing parameters:
1.1. transaction
: Uint8Array
- Encoded Transaction via transactions.Transaction.encode()signTransaction
and is encoded SignedTransaction model.
Uint8Array
- Encoded SignedTransaction via transactions.SignedTransaction.encode()signTransactions
must be encoded.
Array<Object>
- Signing parameters:
1.1. transactions
: Array<Uint8Array>
- Array of Encoded Transaction via transactions.Transaction.encode()signTransactions
and are encoded SignedTransaction models.
Array<Uint8Array>
- Array of Encoded SignedTransaction via transactions.SignedTransaction.encode()