xrp

XRP (XRP)

Method: POST sign_for

dropdown

POST sign_for

Method not allowed

The sign_for command provides one signature for a multi-signed transaction.

By default, this method is admin-only.

It can be used as a public method if the server has enabled public signing.

Parameters

account - String - Address

The address which is providing the signature.

tx_json - Object

Transaction definition in JSON format

secret - String

(Optional) The secret seed of the account supplying the transaction, used to sign it. Do not send your secret to untrusted servers or through unsecured network connections. Cannot be used with key_type, seed, seed_hex, or passphrase.

seed - String

(Optional) The secret seed of the account supplying the transaction, used to sign it.

Must be in the XRP Ledger's base58 format.

If provided, you must also specify the key_type. Cannot be used with secret, seed_hex, or passphrase.

seed_hex - String

(Optional) The secret seed of the account supplying the transaction, used to sign it.

Must be in hexadecimal format.

If provided, you must also specify the key_type. Cannot be used with secret, seed, or passphrase.

passphrase - String

(Optional) The secret seed of the account supplying the transaction, used to sign it, as a string passphrase.

If provided, you must also specify the key_type.

Cannot be used with secret, seed, or seed_hex.

key_type - String

(Optional) The signing algorithm of the cryptographic key pair provided.

Valid types are secp256k1 or ed25519. Defaults to secp256k1.

Cannot be used with secret.

Request

curl --location --request POST 'https://xrp.getblock.io/mainnet/' 
--header 'x-api-key: YOUR-API-KEY' 
--header 'Content-Type: application/json' 
--data-raw '{"jsonrpc": "2.0",
"method": "sign_for",
"params": [{"account": "rLFd1FzHMScFhLsXeaxStzv3UC97QHGAbM", "tx_json": {"TransactionType": "TrustSet", "Account": "rEuLyBCvcw4CFmzv8RepSiAoNgF8tTGJQC", "Flags": 262144, "LimitAmount": {"currency": "USD", "issuer": "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh", "value": "100"}, "Sequence": 2, "SigningPubKey": "", "Fee": "30000"}}],
"id": "getblock.io"}'


Response

{
    "result": "null",
    "id": "getblock.io",
    "status_code": 405,
    "message": "Method not allowed"
}
GetBlock.io

Get access to 40+ blockchain nodes right now! GetBlock provides a fast and reliable API connection to full nodes from many leading blockchains.

Subscribe

Email is invalid

2019 - 2021 GetBlock