Add an address

Adding a new address to the address book

Add an address

post
Header parameters
x-api-public-keystringOptional

Public API-key

x-api-signaturestringOptional

Signing the request body with a private API-key

Content-typestringOptional

Request content type

Example: application/json
Body
addressstringOptional

The address in the blockchain

Example: 0xe2d3A739EFFCd3A99387d015E260eEFAc72EBea2
networksstring[]Optional

List of address networks

Example: 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