For the complete documentation index, see llms.txt. This page is also available as Markdown.

submit_multisigned - XRPL

Example code for the submit_multisigned JSON RPC method. Complete guide to using submit_multisigned JSON-RPC in the GetBlock Web3 documentation.

This method applies a multi-signed transaction and sends it to the network.

Parameters

Parameter
Type
Required
Description

tx_json

object

Yes

Multi-signed transaction JSON

fail_hard

boolean

No

Fail if local error

Request Example

curl
curl --location --request POST 'https://shared.eu-central-1.getblock.io/<ACCESS_TOKEN>/' \
--header 'Content-Type: application/json' \
--data-raw '{
    "jsonrpc": "2.0",
    "method": "submit_multisigned",
    "params": [{
        "tx_json": {
            "Account": "rN7n7otQDd6FczFgLdSqtcsAUxDkw6fzRH",
            "TransactionType": "Payment",
            "Destination": "ra5nK24KXen9AHvsdFTKHSANinZseWnPcX",
            "Amount": "1000000",
            "Fee": "30",
            "Signers": []
        }
    }],
    "id": "getblock.io"
}'
submit_multisigned.js
const axios = require('axios');

const url = 'https://shared.eu-central-1.getblock.io/<ACCESS_TOKEN>/';
const headers = {
    'Content-Type': 'application/json'
};

const payload = {
    jsonrpc: '2.0',
    method: 'submit_multisigned',
    params: [{
        tx_json: {
            Account: 'rN7n7otQDd6FczFgLdSqtcsAUxDkw6fzRH',
            TransactionType: 'Payment',
            Destination: 'ra5nK24KXen9AHvsdFTKHSANinZseWnPcX',
            Amount: '1000000',
            Fee: '30',
            Signers: []
        }
    }],
    id: 'getblock.io'
};

axios.post(url, payload, { headers })
    .then(response => console.log(response.data))
    .catch(error => console.error(error));

Response Example

Response Parameters

Field
Type
Description

engine_result

string

Transaction result

engine_result_code

integer

Result code

tx_blob

string

Transaction hex

tx_json

object

Transaction JSON

signer

array

Signer list

Use Cases

  • Multi-signature accounts

  • Shared custody

  • Organizational accounts

Error Handling

Error Code
Description

temINVALID

Invalid transaction

tefNOT_MULTI_SIGNING

Not multi-sig enabled

SDK Integration

Last updated

Was this helpful?