Add a risk address entry
const url = 'https://pay.example.com/v1/risk/addresses';const options = { method: 'POST', headers: { 'Idempotency-Key': 'example', Authorization: 'Bearer <token>', 'Content-Type': 'application/json' }, body: '{"address":"0x098B716B8Aaf21512996dC57EB0615e2383E2f96","level":"block","category":"hack","reason":"Reported by the fraud team"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://pay.example.com/v1/risk/addresses \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --header 'Idempotency-Key: example' \ --data '{ "address": "0x098B716B8Aaf21512996dC57EB0615e2383E2f96", "level": "block", "category": "hack", "reason": "Reported by the fraud team" }'Adds an entry to the merchant’s list, or to the named list list (created on first use), and applies
at once to quotes, sponsored submissions, bookings and subscription charges (when payer screening is
on). An entry for the same address and chain scope in the same list is replaced. Audited as
api:<key name>. A test key writes only entries whose chain_id is a testnet (403 testnet_only).
Idempotent (see the introduction). Requires risk:write.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Header Parameters
Section titled “Header Parameters”Any unique string per logical request (a UUID); see the introduction.
Request Bodyrequired
Section titled “Request Bodyrequired”object
Any case; not the zero address.
Any case.
sanctions, scam, hack, mixer, false_positive or other; other names are mapped to the closest
(fraud → scam, Tornado mixer → mixer, …) or other.
A chain configured in the console; absent: all chains (a test key must name a testnet).
RFC 3339 or YYYY-MM-DD, in the future.
A named list (list:<name>, created on first use) instead of the merchant’s list (manual or absent); not ofac, not a URL feed.
Example
{ "address": "0x098B716B8Aaf21512996dC57EB0615e2383E2f96", "level": "block", "category": "hack", "reason": "Reported by the fraud team"}Responses
Section titled “Responses”The entry (or the replayed first answer)
object
In the entry’s chain family’s form (EVM: EIP-55 checksummed; an all-chain entry by its length: 20 bytes EIP-55, 32 bytes Base58).
In the entry’s chain family’s form (EVM: EIP-55 checksummed; an all-chain entry by its length: 20 bytes EIP-55, 32 bytes Base58).
In the entry’s chain family’s form (EVM: EIP-55 checksummed; an all-chain entry by its length: 20 bytes EIP-55, 32 bytes Base58).
The chain it applies to; null for all chains.
manual (the merchant’s list), ofac, feed:<name> (a URL feed), list:<name> (a named list).
block refuses the quote; review lets the payment through and flags the order; allow overrides every other source.
Internal note (at most 200 characters); never shown to payers.
Example
{ "source": "manual", "category": "sanctions", "level": "block"}invalid_request with params.field: address (not an address of any family, or the zero address), level,
chain_id (not a chain configured here), reason (over 200 characters), expires_at (not a date, or
in the past), list (not manual or a list name). Without params: a body that is not JSON, has an
unknown field or a wrong type; missing Idempotency-Key.
object
object
English, for logs; may change.
Values for a localized message, e.g. {"field": "expires_in", "min": 60, "max": 604800}. Absent when the error has none.
object
object
Example
{ "error": { "code": "invalid_request" }}unauthorized: no Authorization: Bearer header, or an unknown or revoked key.
object
object
English, for logs; may change.
Values for a localized message, e.g. {"field": "expires_in", "min": 60, "max": 604800}. Absent when the error has none.
object
object
Example
{ "error": { "code": "unauthorized" }}insufficient_scope; testnet_only: a test key writing an entry not scoped to a testnet chain
(params: chain_id, testnets).
object
object
English, for logs; may change.
Values for a localized message, e.g. {"field": "expires_in", "min": 60, "max": 604800}. Absent when the error has none.
object
object
Example
{ "error": { "code": "insufficient_scope" }}list_is_feed: list names a URL feed, whose entries come from its URL (params.list). request_in_progress.
object
object
English, for logs; may change.
Values for a localized message, e.g. {"field": "expires_in", "min": 60, "max": 604800}. Absent when the error has none.
object
object
Example
{ "error": { "code": "list_is_feed" }}payload_too_large: the body is over 64 KiB (the bulk import: 4 MiB).
object
object
English, for logs; may change.
Values for a localized message, e.g. {"field": "expires_in", "min": 60, "max": 604800}. Absent when the error has none.
object
object
Example
{ "error": { "code": "payload_too_large" }}idempotency_key_reused: the Idempotency-Key was used with another request body.
object
object
English, for logs; may change.
Values for a localized message, e.g. {"field": "expires_in", "min": 60, "max": 604800}. Absent when the error has none.
object
object
Example
{ "error": { "code": "idempotency_key_reused" }}