> ## Documentation Index
> Fetch the complete documentation index at: https://docs.reown.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Tezos

> Tezos JSON-RPC Methods

<Note type="warning">
  **Please note:** The Tezos RPC standard is still under review and specifications may change. Implementation details and method signatures are subject to updates.
</Note>

## tezos\_getAccounts

This method returns an array of public keys, which correspond to keypairs available in the wallet for signing.

### Parameters

none

### Returns

1.`Array` - Array of accounts:
1.1. `Object` - Account Data object with parameters:
1.1.1. `algo` : `STRING` - algorithm used for signing
1.1.2. `address` : `STRING` - corresponding address for keypair
1.1.3. `pubkey` : `STRING` - public key for keypair

### Example

```javascript theme={null}
// Request
{
    "id": 1,
    "jsonrpc": "2.0",
    "method": "tezos_getAccounts",
    "params": {}
}

// Result
{
    "id": 1,
    "jsonrpc": "2.0",
    "result":  [
        {
            "algo": "ed25519",
            "address": "tz1VQA4RP4fLjEEMW2FR4pE9kAg5abb5h5GL",
            "pubkey": "edpku4US3ZykcZifjzSGFCmFr3zRgCKndE82estE4irj4d5oqDNDvf"
        }
    ]
}
```

## tezos\_send

This method returns a hash for the provided operations. They will be signed by the keypair corresponding to the requested signer address and sent to the blockchain.

### Parameters

1. `Object` - Signing parameters:
   1.1. `account` : `STRING` - corresponding address for keypair
   1.2. `operations` : `Array` - operations to be signed:
   1.2.1. `Object` - identifier of blockchain
   1.2.1.1. `kind` : `STRING` - type of the operation
   1.2.1.2. `destination` : `STRING` - recipient of the operation
   1.2.1.3. `amount` : `STRING` - mutez amount
   1.2.1.4. `fee` : `STRING` - (optional) operation fee - NOTE: Not all wallets will respect this value because it's usually set by the wallet depending on network usage
   1.2.1.5. `gas_limit` : `STRING` - (optional) integer of the gas\_limit
   1.2.1.6. `storage_limit` : `STRING` - (optional) integer of the storage\_limit
   1.2.1.7. `parameters` : `Object` - (optional) contract call data

Note: All [RPC Operations](https://github.com/ecadlabs/taquito/blob/4dc6c391047b977b11eb92c7f5a5bc508ca32f01/packages/taquito/src/operations/types.ts#L553C13-L567) are valid. The above definition describes only the most common operation type.

### Returns

1. `Object` - Signing parameters:
   1.1. `operationHash` : `STRING` - hash of the operation

### Example

```javascript theme={null}
// Request
{
    "id": 1,
    "jsonrpc": "2.0",
    "method": "tezos_send",
    "params": {
        "account": "tz1VQA4RP4fLjEEMW2FR4pE9kAg5abb5h5GL",
        "operations": [
            {
                "kind": "transaction";
                "amount": "1";
                "destination": "tz1VQA4RP4fLjEEMW2FR4pE9kAg5abb5h5GL";
            }
        ]
    }
}

// Result
{
    "id": 1,
    "jsonrpc": "2.0",
    "result":  {
        "operationHash": "op..."
    }
}
```

## tezos\_sign

This method returns a signature for the provided payload. It will be signed by the keypair corresponding to the requested signer address.

### Parameters

1. `Object` - Signing parameters:
   1.1. `account` : `STRING` - corresponding address for keypair
   1.2. `payload` : `STRING` - payload to be signed

### Returns

1. `Object` - Signing parameters:
   1.1. `signature` : `STRING` -  signature for signed payload

### Example

```javascript theme={null}
// Request
{
    "id": 1,
    "jsonrpc": "2.0",
    "method": "tezos_sign",
    "params": {
        "account": "tz1VQA4RP4fLjEEMW2FR4pE9kAg5abb5h5GL",
        "payload": "05010000004254",
    }
}

// Result
{
    "id": 1,
    "jsonrpc": "2.0",
    "result":  {
        "signature": "edsig..."
    }
}
```
