Create payment psbt
Handles the creation of a payment PSBT.
Body
orderIdstringOptionalExample:
The ID of the order.
order123
paymentAddressstringOptionalExample:
The payment address.
1A1zP1eP5QGefi2DMPTfTL5SLmv7DivfNa
paymentPublicKeystringOptionalExample:
The payment public key.
02b463a1e6b8e1a1e1a1e1a1e1a1e1a1e1a1e1a1e1a1e1a1e1a1e1a1e1a1e1a1
ordinalAddressstringOptionalExample:
The ordinal address.
bc1qw508d6qejxtdg4y5r3zarvary0c5xw7kygt080
ordinalPublicKeystringOptionalExample:
The ordinal public key.
03b463a1e6b8e1a1e1a1e1a1e1a1e1a1e1a1e1a1e1a1e1a1e1a1e1a1e1a1e1a1
feeRatenumberOptionalExample:
The fee rate for the transaction.
0.0001
Responses
200
Successfully created the payment PSBT.
application/json
400
Bad request. Invalid input parameters.
application/json
500
Internal server error.
application/json
post
POST /tokenpay/create-payment-psbt HTTP/1.1
Host: api.ordinalsbot.com
Content-Type: application/json
Accept: */*
Content-Length: 327
{
"orderId": "order123",
"paymentAddress": "1A1zP1eP5QGefi2DMPTfTL5SLmv7DivfNa",
"paymentPublicKey": "02b463a1e6b8e1a1e1a1e1a1e1a1e1a1e1a1e1a1e1a1e1a1e1a1e1a1e1a1e1a1",
"ordinalAddress": "bc1qw508d6qejxtdg4y5r3zarvary0c5xw7kygt080",
"ordinalPublicKey": "03b463a1e6b8e1a1e1a1e1a1e1a1e1a1e1a1e1a1e1a1e1a1e1a1e1a1e1a1e1a1",
"feeRate": 0.0001
}
{
"psbt": "cHNidP8BAFICAAAA..."
}