Add an address
Adding a new address to the address book
Header parameters
x-api-public-keystringOptional
Public API-key
x-api-signaturestringOptional
Signing the request body with a private API-key
Content-typestringOptionalExample:
Request content type
application/json
Body
addressstringOptionalExample:
The address in the blockchain
0xe2d3A739EFFCd3A99387d015E260eEFAc72EBea2
networksstring[]OptionalExample:
List of address networks
ethereum
aliasstringOptional
Address name
commentstringOptional
Comment on the address
Responses
200Success
application/json
post
POST /api-gateway/address-book/add HTTP/1.1
Host: ocp.onchainpay.io
Content-Type: application/json
Accept: */*
Content-Length: 104
{
"address": "0xe2d3A739EFFCd3A99387d015E260eEFAc72EBea2",
"networks": [
"ethereum"
],
"alias": "",
"comment": ""
}
200Success
{
"success": true,
"response": {
"id": "cd6c060f-e760-41d3-b7b9-0d053ea5d3f5",
"networks": [
"ethereum"
],
"address": "0xe2d3A739EFFCd3A99387d015E260eEFAc72EBea2",
"alias": "",
"comment": ""
}
}
Last updated