Walletguide
DevelopersAPIReferencetransfers

CounterAsset

Sets the transfer-counter pair (type asset) on the position; the balance effect is computed on the fly by the engine (legacy…

POST
/wallets/{walletId}/transfers/counterAsset

Authorization

bearerAuth
headerAuthorization<token>

A Walletguide API key (wg_…) or an OAuth bearer token. Paste the value only. Create a key under Wallet settings → API keys.

Path Parameters

walletId*string

Row uuid

Formatuuid

Request Body

application/json
  1. body
source*
assetId*string

Row uuid

Formatuuid

Response Body

Linked to the asset

application/json
  1. response
ok*true
Value intrue
Example Request
curl -X POST 'https://api.walletguide.com/wallets/497f6eca-6276-4993-bfeb-53cbbbba6f08/transfers/counterAsset' \  -H 'Content-Type: application/json' \  -d '{  "source": {    "type": "transaction",    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"  },  "assetId": "9179b887-04ef-4ce5-ab3a-b5bbd39ea3c8"}'
Example Response
{  "ok": true}