cURL
curl --request POST \
--url http://localhost:4100/v1/accounts/{id}/tokens \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"tokenAddress": "<string>"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({tokenAddress: '<string>'})
};
fetch('http://localhost:4100/v1/accounts/{id}/tokens', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"symbol": "<string>",
"name": "<string>",
"chain": "Base",
"chainId": 8453,
"tokenAddress": "<string>",
"decimals": 123,
"amount": 123,
"fiat": 123,
"price": 123,
"change24h": 123,
"isStablecoin": true,
"peg": null,
"source": "imported",
"spendable": true
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"correlationId": "<string>"
}
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"correlationId": "<string>"
}
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"correlationId": "<string>"
}
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"correlationId": "<string>"
}
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"correlationId": "<string>"
}
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"correlationId": "<string>"
}
}Account
Post v1accounts tokens
cURL
curl --request POST \
--url http://localhost:4100/v1/accounts/{id}/tokens \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"tokenAddress": "<string>"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({tokenAddress: '<string>'})
};
fetch('http://localhost:4100/v1/accounts/{id}/tokens', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"symbol": "<string>",
"name": "<string>",
"chain": "Base",
"chainId": 8453,
"tokenAddress": "<string>",
"decimals": 123,
"amount": 123,
"fiat": 123,
"price": 123,
"change24h": 123,
"isStablecoin": true,
"peg": null,
"source": "imported",
"spendable": true
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"correlationId": "<string>"
}
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"correlationId": "<string>"
}
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"correlationId": "<string>"
}
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"correlationId": "<string>"
}
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"correlationId": "<string>"
}
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"correlationId": "<string>"
}
}Authorizations
Body
application/json
Response
Imported token view.