account_sign_data
Cryptographically sign data using a local account's private key within the NEAR MCP server. Specify encoding to generate secure, encoded signatures with curve details.
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
| Name | Required | Description | Default | 
|---|---|---|---|
| accountId | Yes | The account id of the account that will sign the data. This account must be in the local keystore. | |
| data | Yes | The data to sign as a string. | |
| networkId | No | mainnet | |
| signatureEncoding | No | The 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"
}