BTG
POST
GET
Last updated on January 1, 1970
2 min read
Method send undefined ()
connect with JSON-RPC protocol
send
Method not allowed
EXPERIMENTAL warning this call may be changed in future releases.Send a transaction.
Parameters
outputs
- json array, required
The outputs (key-value pairs), where none of the keys are duplicated.
That is, each address can only appear once and there can only be one ‘data’ object. For convenience, a dictionary, which holds the key-value pairs directly, is also accepted.
conf_target
- numeric, optional, default=wallet -txconfirmtarget
Confirmation target in blocks
estimate_mode
- string, optional, default=unset
The fee estimate mode, must be one of (case insensitive) “unset” “economical” “conservative”
fee_rate
- numeric or string, optional, default=not set, fall back to
wallet fee estimation
Specify a fee rate in sat/vB.
options
- json object, optional
“locktime” n, (numeric, optional, default=0) Raw locktime. Non-0 value also locktime-activates inputs
Request
curl --location --request POST 'https://btg.getblock.io/mainnet'
--header 'x-api-key: YOUR-API-KEY'
--header 'Content-Type: application/json'
--data-raw '{"jsonrpc": "2.0",
"method": "send",
"params": [null, null, null, null, null],
"id": "getblock.io"}'
Response
{
"result": "null",
"id": "getblock.io",
"status_code": 405,
"message": "Method not allowed"
}
Start Building with GetBlock RPCs for Free
Previous
{ "overview": "Overview", "guides": "Guides", "get-started": "Get Started", "rpc-service": "Nodes Methods", "getblock-explorer": "Explorer API", "getblock-tracker": "Tracker API", "nodes-endpoints": "Nodes Endpoints" }
Next
{ "overview": "Overview", "guides": "Guides", "get-started": "Get Started", "rpc-service": "Nodes Methods", "getblock-explorer": "Explorer API", "getblock-tracker": "Tracker API", "nodes-endpoints": "Nodes Endpoints" }