NEAR MCP

by nearai
Verified

account_sign_data

Cryptographically sign data using a local account's private key, encode the result, and generate outputs for curve, encoded signature, and encoding. Used with NEAR MCP for blockchain interactions.

Instructions

Cryptographically sign a piece of data with a local account's private key, then encode the result with the specified encoding. Outputs the curve, encoded signature, and encoding used.

Input Schema

NameRequiredDescriptionDefault
accountIdYesThe account id of the account that will sign the data. This account must be in the local keystore.
dataYesThe data to sign as a string.
networkIdNomainnet
signatureEncodingNoThe encoding to use for signature creation.base58

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "accountId": { "description": "The account id of the account that will sign the data. This account must be in the local keystore.", "type": "string" }, "data": { "description": "The data to sign as a string.", "type": "string" }, "networkId": { "default": "mainnet", "enum": [ "testnet", "mainnet" ], "type": "string" }, "signatureEncoding": { "default": "base58", "description": "The encoding to use for signature creation.", "enum": [ "base58", "base64" ], "type": "string" } }, "required": [ "accountId", "data" ], "type": "object" }
ID: ibzhoz5k4z