Download OpenAPI specification:Download
Horizon is the client-facing REST API module that consumes data from the core of the system and makes it more convenient to use the client facing application. It allows submitting transactions to the network, reading history of operations, and checking the state of entities.
IMPORTANT: Note that endpoints not specified in this document or marked as
WIP
do not guaranty the backwards compability maintenance.
Horizon uses JSON:API convention to format requests and responses. The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in RFC 2119.
TokenD uses the Ed25519 algorithm for authorizing any request or read private data. The use of such cryptographic proof allows building a system where transfer of secrets in an open form is not necessary, which significantly improves the security. Thus, an attacker who has access to one of the servers will not be able to compromise users' secrets.
Request signature implementation is based on IETF HTTP Signatures draft RFC. Implicit headers parameter is not supported; clients must explicitly specify headers used for signing.
The signature algorithm supported is ed25519-sha256, which uses public signer key as keyId
.
Both Signature and Authorization HTTP authentication schemas are supported.
The minimum recommended data to sign is the (request-header) and date.
For the following request:
GET /users?type=2 HTTP/1.1
Host: api.tokend.io
Date: Fri, 05 Jan 2018 21:31:40 GMT
Signing string would be:
date: Fri, 05 Jan 2018 21:31:40 GMT
(request-target): get /users?type=2
Note that header names and HTTP method are lowercased.
The next step is to convert the signing string to a byte array using UTF-8
encoding and to take its SHA-256
hash.
For the signing string above, hash would be:
6fcbee4b0a8932784644d33b360bd3eef389ed37dfd66f17e4bfa910ba9d616a
Now, you have to sign hash with a private key and encode the result in Base64
. For a seed such as SCDMOOXVNMO6SA22AYUMZDIGLDJMBUTVEGB73FFNTLFJILBJWIU4NQ3D
, the encoded signature would be:
w/y3EsliTmQPC6MS88N/kjU/hFVxlIdhFhzfRGv4yIsSokgMpxVqxcC/CmUsAN4t3BKpskGG7+JEWryV8NXvCg==
The result HTTP header included to the request then would be:
Authorization: keyId="GBLTOG6EJS5OWDNQNSCEAVDNMPBY6F73XZHHKR27YE5AKE23ZZEXOLBK",algorithm="ed25519-sha256",signature="w/y3EsliTmQPC6MS88N/kjU/hFVxlIdhFhzfRGv4yIsSokgMpxVqxcC/CmUsAN4t3BKpskGG7+JEWryV8NXvCg==",headers="date (request-target)"
Allows getting Account
with corresponding details.
Note that if we include fees
filter - we will receive all the fees applied to a particular account.
For example if someone's, say Bob, account has a several fees applied to itself:
BTC
and is 1% from the paymentBTC
then we will receive both of them in response because they are applied to Bob's account
id required | string Unique identifier of an account |
include | string Enum: "fees" "balances" "balances.asset" "balances.state" "referrer" "limits" "external_system_ids" "role" "role.rules" "kyc_data" Example: include=balances,balances.asset 🔒 Following relationships require an owner's or admin's signature to be included:
|
account exists
bad input parameter
either an invalid signature has been provided or a signer has not been authorized to access specified resources
such an account does not exist
TokenD Developer Environment
{- "data": {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts",
- "attributes": {
- "kyc_recovery_status": {
- "value": 1,
- "name": "General"
}
}, - "relationships": {
- "signers": {
- "data": [
- {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "signers"
}
]
}, - "referrer": {
- "data": {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts"
}
}, - "balances": {
- "data": [
- {
- "id": "BDLXKLLVS6UIQEDYCZKIC5222GGQLCOTHM4BWXVCBDQMJTUWUFUATV2Q",
- "type": "balances"
}
]
}, - "limits": {
- "data": [
- {
- "id": "1",
- "type": "limits"
}
]
}, - "external_system_ids": {
- "data": [
- {
- "id": "1",
- "type": "external-system-ids"
}
]
}, - "role": {
- "data": {
- "id": "4581",
- "type": "account-roles"
}
}, - "fees": {
- "data": [
- {
- "id": "a343e3cbcc72928a571778f77bf2554eb5b72c79ce28bbc9d3325c60c21e5241",
- "type": "fees"
}
]
}, - "limits_with_stats": {
- "data": [
- {
- "id": "1",
- "type": "limits-with-stats"
}
]
}, - "kyc_data": {
- "data": {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "account-kyc"
}
}
}
}, - "included": [
- {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts",
- "attributes": {
- "kyc_recovery_status": {
- "value": 1,
- "name": "General"
}
}, - "relationships": {
- "signers": {
- "data": [
- {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "signers"
}
]
}, - "referrer": {
- "data": {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts"
}
}, - "balances": {
- "data": [
- {
- "id": "BDLXKLLVS6UIQEDYCZKIC5222GGQLCOTHM4BWXVCBDQMJTUWUFUATV2Q",
- "type": "balances"
}
]
}, - "limits": {
- "data": [
- {
- "id": "1",
- "type": "limits"
}
]
}, - "external_system_ids": {
- "data": [
- {
- "id": "1",
- "type": "external-system-ids"
}
]
}, - "role": {
- "data": {
- "id": "4581",
- "type": "account-roles"
}
}, - "fees": {
- "data": [
- {
- "id": "a343e3cbcc72928a571778f77bf2554eb5b72c79ce28bbc9d3325c60c21e5241",
- "type": "fees"
}
]
}, - "limits_with_stats": {
- "data": [
- {
- "id": "1",
- "type": "limits-with-stats"
}
]
}, - "kyc_data": {
- "data": {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "account-kyc"
}
}
}
}
]
}
Allows to get list of accounts. Admin signature is required.
filter[account] | Array of strings Filters accounts by account id |
filter[role] | Array of integers Filters accounts by role id |
page[number] | integer >= 0 Page number to return. |
page[limit] | integer [ 1 .. 100 ] Default: 15 Numbers of items per page to return. |
page[order] | string Default: "asc" Enum: "asc" "desc" Order of records on the page. If sortingParam is not specified, order of records is by default sorted by ID. |
asset exists
bad input parameter
TokenD Developer Environment
{- "data": [
- {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts",
- "attributes": {
- "kyc_recovery_status": {
- "value": 1,
- "name": "General"
}
}, - "relationships": {
- "signers": {
- "data": [
- {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "signers"
}
]
}, - "referrer": {
- "data": {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts"
}
}, - "balances": {
- "data": [
- {
- "id": "BDLXKLLVS6UIQEDYCZKIC5222GGQLCOTHM4BWXVCBDQMJTUWUFUATV2Q",
- "type": "balances"
}
]
}, - "limits": {
- "data": [
- {
- "id": "1",
- "type": "limits"
}
]
}, - "external_system_ids": {
- "data": [
- {
- "id": "1",
- "type": "external-system-ids"
}
]
}, - "role": {
- "data": {
- "id": "4581",
- "type": "account-roles"
}
}, - "fees": {
- "data": [
- {
- "id": "a343e3cbcc72928a571778f77bf2554eb5b72c79ce28bbc9d3325c60c21e5241",
- "type": "fees"
}
]
}, - "limits_with_stats": {
- "data": [
- {
- "id": "1",
- "type": "limits-with-stats"
}
]
}, - "kyc_data": {
- "data": {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "account-kyc"
}
}
}
}
], - "links": {
- "next": "/v3/accounts?page[number]=2&page[limit]=15",
- "self": "/v3/accounts?page[number]=1&page[limit]=15"
}
}
Allows calculating a fee for an account.
asset required | string Unique identifier of an asset |
fee_type required | integer Type of fee |
subtype required | integer Subtype of fee |
amount required | string Amount to calculate on which fee is based on |
fee does exist and is calculated successfuly
bad input parameter
internal error occured during the request processing
TokenD Developer Environment
{- "data": {
- "id": "a343e3cbcc72928a571778f77bf2554eb5b72c79ce28bbc9d3325c60c21e5241",
- "type": "calculated-fee",
- "attributes": {
- "fixed": 486000000,
- "calculated_percent": 4000000
}
}
}
Allows getting Signers
of the account with corresponding details.
id required | string Unique identifier of an account |
include | string Enum: "role" "role.rules" Example: include=role,role.rules For signers, following relationships can be included: |
account exists
bad input parameter
such an account does not exist
TokenD Developer Environment
{- "data": [
- {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "signers",
- "attributes": {
- "weight": 0,
- "identity": 0,
- "details": { }
}, - "relationships": {
- "role": {
- "data": {
- "id": "4581",
- "type": "signer-roles"
}
}, - "account": {
- "data": {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts"
}
}
}
}
], - "included": [
- {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts",
- "attributes": {
- "kyc_recovery_status": {
- "value": 1,
- "name": "General"
}
}, - "relationships": {
- "signers": {
- "data": [
- {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "signers"
}
]
}, - "referrer": {
- "data": {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts"
}
}, - "balances": {
- "data": [
- {
- "id": "BDLXKLLVS6UIQEDYCZKIC5222GGQLCOTHM4BWXVCBDQMJTUWUFUATV2Q",
- "type": "balances"
}
]
}, - "limits": {
- "data": [
- {
- "id": "1",
- "type": "limits"
}
]
}, - "external_system_ids": {
- "data": [
- {
- "id": "1",
- "type": "external-system-ids"
}
]
}, - "role": {
- "data": {
- "id": "4581",
- "type": "account-roles"
}
}, - "fees": {
- "data": [
- {
- "id": "a343e3cbcc72928a571778f77bf2554eb5b72c79ce28bbc9d3325c60c21e5241",
- "type": "fees"
}
]
}, - "limits_with_stats": {
- "data": [
- {
- "id": "1",
- "type": "limits-with-stats"
}
]
}, - "kyc_data": {
- "data": {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "account-kyc"
}
}
}
}
], - "links": {
- "next": "/v3/accounts/GA67BUDBYDGCVCL6EKPDAREG5IPLHSROF6QJX7MLS2BQJZJDO6FCZAKE/signers?include=role,role.rules&page[number]=2&page[limit]=15",
- "self": "/v3/accounts/GA67BUDBYDGCVCL6EKPDAREG5IPLHSROF6QJX7MLS2BQJZJDO6FCZAKE/signers?include=role,role.rules&page[number]=1&page[limit]=15"
}
}
Allows getting Asset
with corresponding details.
id required | string Unique identifier of an asset (code) |
include | string Value: "owner" Relationships that may be used for the included parameter. |
asset exists
bad input parameter
asset does not exist
TokenD Developer Environment
{- "data": {
- "id": "USD",
- "type": "assets",
- "relationships": {
- "owner": {
- "data": {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts"
}
}
}, - "attributes": {
- "pre_issuance_asset_signer": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "max_issuance_amount": "1000.000001",
- "available_for_issuance": "20.000000",
- "issued": "10.000000",
- "pending_issuance": "123.000123",
- "policies": {
- "value": 4,
- "flags": [
- {
- "value": 1,
- "name": "General"
}
]
}, - "trailing_digits": 2,
- "type": 2,
- "state": {
- "value": 1,
- "name": "General"
}, - "details": { }
}
}, - "included": [
- {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts"
}
]
}
Allows getting a filtered list of Asset
with corresponding details.
filter[policy] | integer Filters assets by a specified bit mask. Returns the page of assets where at least one bit intersects |
filter[types] | integer Filters assets by a specified types. Returns the page of assets where at least one bit intersects |
filter[owner] | string Filters assets by a specified owner's account address. |
filter[state] | string Filters assets by state.
|
include | string Value: "owner" Relationships that may be used for the included parameter. |
page[number] | integer >= 0 Page number to return. |
page[limit] | integer [ 1 .. 100 ] Default: 15 Numbers of items per page to return. |
page[order] | string Default: "asc" Enum: "asc" "desc" Order of records on the page. If sortingParam is not specified, order of records is by default sorted by ID. |
asset exists
bad input parameter
asset does not exist
TokenD Developer Environment
{- "data": [
- {
- "id": "USD",
- "type": "assets",
- "relationships": {
- "owner": {
- "data": {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts"
}
}
}, - "attributes": {
- "pre_issuance_asset_signer": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "max_issuance_amount": "1000.000001",
- "available_for_issuance": "20.000000",
- "issued": "10.000000",
- "pending_issuance": "123.000123",
- "policies": {
- "value": 4,
- "flags": [
- {
- "value": 1,
- "name": "General"
}
]
}, - "trailing_digits": 2,
- "type": 2,
- "state": {
- "value": 1,
- "name": "General"
}, - "details": { }
}
}
], - "included": [
- {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts"
}
], - "links": {
- "next": "/v3/assets?include=owner&page[number]=2&page[limit]=15",
- "self": "/v3/assets?include=owner&page[number]=1&page[limit]=15"
}
}
Allows getting CreateAssetRequest
by ID
🔒 Requestor's or reviewer's signature is needed
filter[requestor] | string Filters requests by requestor - source of the operation. |
filter[reviewer] | string Filters requests by reviewer - account assigned to review requests. |
filter[state] | integer [ 1 .. 5 ] Filters requests by their state.
|
filter[pending_tasks] | integer Filters requests by existing tasks in pending tasks bit mask. Returns requests if all bits are set. |
filter[pending_tasks_not_set] | integer Filters requests by existing tasks in pending tasks bit mask. Returns requests if none of bits is set. |
filter[pending_tasks_any_of] | integer Filters requests by existing tasks in pending tasks bit mask. Returns requests if at least one bit is set. |
filter[request_details.asset] | string Filters asset create requests by asset code. |
include | string Enum: "request_details" "request_details.asset" Relationships that may be used for the included parameter. |
requests exist
bad input parameter
either an invalid signature has been provided or a signer has not been authorized to access specified resources
request does not exist
TokenD Developer Environment
{- "data": {
- "id": "12345",
- "type": "requests",
- "relationships": {
- "requestor": {
- "data": {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts"
}
}, - "reviewer": {
- "data": {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts"
}
}, - "request_details": {
- "data": {
- "id": "5",
- "type": "request-details-asset-create"
}
}
}, - "attributes": {
- "reject_reason": "source account underfunded",
- "hash": "13935d561f9ec54341243e6afaf0c8bf936928b07f6600204ba8ca550757d0a6",
- "all_tasks": 12,
- "pending_tasks": 2,
- "created_at": "2012-11-01T22:08:41+00:00",
- "updated_at": "2012-11-01T22:08:41+00:00",
- "state": "pending",
- "state_i": 0,
- "reference": "719111a51cfc5ad214e4e90ce6610f10e1cba165fd1bc9db73a031352b3bb61c",
- "external_details": { },
- "xdr_type": {
- "value": 1,
- "name": "General"
}
}
}, - "included": [
- {
- "id": "5",
- "type": "request-details-asset-create",
- "relationships": {
- "asset": {
- "data": {
- "id": "USD",
- "type": "assets"
}
}
}, - "attributes": {
- "asset": "USD",
- "type": 1,
- "policies": 12,
- "pre_issuance_asset_signer": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "max_issuance_amount": "1000.123456",
- "initial_preissued_amount": "1000.123456",
- "trailing_digits_count": 2,
- "creator_details": { }
}
}
]
}
Allows getting a filtered list of CreateAssetRequest
with details
🔒 Requestor's or reviewer's signature is needed
filter[requestor] | string Filters requests by requestor - source of the operation. |
filter[reviewer] | string Filters requests by reviewer - account assigned to review requests. |
filter[state] | integer [ 1 .. 5 ] Filters requests by their state.
|
filter[pending_tasks] | integer Filters requests by existing tasks in pending tasks bit mask. Returns requests if all bits are set. |
filter[pending_tasks_not_set] | integer Filters requests by existing tasks in pending tasks bit mask. Returns requests if none of bits is set. |
filter[pending_tasks_any_of] | integer Filters requests by existing tasks in pending tasks bit mask. Returns requests if at least one bit is set. |
filter[request_details.asset] | string Filters asset create requests by asset code. |
include | string Enum: "request_details" "request_details.asset" Relationships that may be used for the included parameter. |
page[number] | integer >= 0 Page number to return. |
page[limit] | integer [ 1 .. 100 ] Default: 15 Numbers of items per page to return. |
page[order] | string Default: "asc" Enum: "asc" "desc" Order of records on the page. If sortingParam is not specified, order of records is by default sorted by ID. |
requests exist
bad input parameter
either an invalid signature has been provided or a signer has not been authorized to access specified resources
requests do not exist
TokenD Developer Environment
{- "data": [
- {
- "id": "12345",
- "type": "requests",
- "relationships": {
- "requestor": {
- "data": {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts"
}
}, - "reviewer": {
- "data": {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts"
}
}, - "request_details": {
- "data": {
- "id": "5",
- "type": "request-details-asset-create"
}
}
}, - "attributes": {
- "reject_reason": "source account underfunded",
- "hash": "13935d561f9ec54341243e6afaf0c8bf936928b07f6600204ba8ca550757d0a6",
- "all_tasks": 12,
- "pending_tasks": 2,
- "created_at": "2012-11-01T22:08:41+00:00",
- "updated_at": "2012-11-01T22:08:41+00:00",
- "state": "pending",
- "state_i": 0,
- "reference": "719111a51cfc5ad214e4e90ce6610f10e1cba165fd1bc9db73a031352b3bb61c",
- "external_details": { },
- "xdr_type": {
- "value": 1,
- "name": "General"
}
}
}
], - "included": [
- {
- "id": "5",
- "type": "request-details-asset-create",
- "relationships": {
- "asset": {
- "data": {
- "id": "USD",
- "type": "assets"
}
}
}, - "attributes": {
- "asset": "USD",
- "type": 1,
- "policies": 12,
- "pre_issuance_asset_signer": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "max_issuance_amount": "1000.123456",
- "initial_preissued_amount": "1000.123456",
- "trailing_digits_count": 2,
- "creator_details": { }
}
}
], - "links": {
- "next": "/v3/create_asset_requests?include=details&page[number]=2&page[limit]=15",
- "self": "/v3/create_asset_requests?include=details&page[number]=1&page[limit]=15"
}
}
Allows getting UpdateAssetRequest
by ID
🔒 Requestor's or reviewer's signature is needed
filter[requestor] | string Filters requests by requestor - source of the operation. |
filter[reviewer] | string Filters requests by reviewer - account assigned to review requests. |
filter[state] | integer [ 1 .. 5 ] Filters requests by their state.
|
filter[pending_tasks] | integer Filters requests by existing tasks in pending tasks bit mask. Returns requests if all bits are set. |
filter[pending_tasks_not_set] | integer Filters requests by existing tasks in pending tasks bit mask. Returns requests if none of bits is set. |
filter[pending_tasks_any_of] | integer Filters requests by existing tasks in pending tasks bit mask. Returns requests if at least one bit is set. |
filter[request_details.asset] | string Filters update asset requests by asset code. |
include | string Enum: "request_details" "request_details.asset" Relationships that may be used for the included parameter. |
requests exist
bad input parameter
either an invalid signature has been provided or a signer has not been authorized to access specified resources
request does not exist
TokenD Developer Environment
{- "data": {
- "id": "12345",
- "type": "requests",
- "relationships": {
- "requestor": {
- "data": {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts"
}
}, - "reviewer": {
- "data": {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts"
}
}, - "request_details": {
- "data": {
- "id": "5",
- "type": "request-details-asset-create"
}
}
}, - "attributes": {
- "reject_reason": "source account underfunded",
- "hash": "13935d561f9ec54341243e6afaf0c8bf936928b07f6600204ba8ca550757d0a6",
- "all_tasks": 12,
- "pending_tasks": 2,
- "created_at": "2012-11-01T22:08:41+00:00",
- "updated_at": "2012-11-01T22:08:41+00:00",
- "state": "pending",
- "state_i": 0,
- "reference": "719111a51cfc5ad214e4e90ce6610f10e1cba165fd1bc9db73a031352b3bb61c",
- "external_details": { },
- "xdr_type": {
- "value": 1,
- "name": "General"
}
}
}, - "included": [
- {
- "id": "5",
- "type": "request-details-asset-update",
- "relationships": {
- "asset": {
- "id": "USD",
- "type": "assets"
}
}, - "attributes": {
- "policies": 12,
- "creator_details": { }
}
}
]
}
Allows getting a filtered list of UpdateAssetRequest
with details
🔒 Requestor's or reviewer's signature is needed
filter[requestor] | string Filters requests by requestor - source of the operation. |
filter[reviewer] | string Filters requests by reviewer - account assigned to review requests. |
filter[state] | integer [ 1 .. 5 ] Filters requests by their state.
|
filter[pending_tasks] | integer Filters requests by existing tasks in pending tasks bit mask. Returns requests if all bits are set. |
filter[pending_tasks_not_set] | integer Filters requests by existing tasks in pending tasks bit mask. Returns requests if none of bits is set. |
filter[pending_tasks_any_of] | integer Filters requests by existing tasks in pending tasks bit mask. Returns requests if at least one bit is set. |
filter[request_details.asset] | string Filters asset update requests by asset code. |
include | string Enum: "request_details" "request_details.asset" Relationships that may be used for the included parameter. |
page[number] | integer >= 0 Page number to return. |
page[limit] | integer [ 1 .. 100 ] Default: 15 Numbers of items per page to return. |
page[order] | string Default: "asc" Enum: "asc" "desc" Order of records on the page. If sortingParam is not specified, order of records is by default sorted by ID. |
requests exist
bad input parameter
either an invalid signature has been provided or a signer has not been authorized to access specified resources
requests do not exist
TokenD Developer Environment
{- "data": [
- {
- "id": "12345",
- "type": "requests",
- "relationships": {
- "requestor": {
- "data": {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts"
}
}, - "reviewer": {
- "data": {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts"
}
}, - "request_details": {
- "data": {
- "id": "5",
- "type": "request-details-asset-create"
}
}
}, - "attributes": {
- "reject_reason": "source account underfunded",
- "hash": "13935d561f9ec54341243e6afaf0c8bf936928b07f6600204ba8ca550757d0a6",
- "all_tasks": 12,
- "pending_tasks": 2,
- "created_at": "2012-11-01T22:08:41+00:00",
- "updated_at": "2012-11-01T22:08:41+00:00",
- "state": "pending",
- "state_i": 0,
- "reference": "719111a51cfc5ad214e4e90ce6610f10e1cba165fd1bc9db73a031352b3bb61c",
- "external_details": { },
- "xdr_type": {
- "value": 1,
- "name": "General"
}
}
}
], - "included": [
- {
- "id": "5",
- "type": "request-details-asset-update",
- "relationships": {
- "asset": {
- "id": "USD",
- "type": "assets"
}
}, - "attributes": {
- "policies": 12,
- "creator_details": { }
}
}
], - "links": {
- "next": "/v3/asset_update_requests?include=asset&page[number]=2&page[limit]=15",
- "self": "/v3/asset_update_requests?include=asset&page[number]=1&page[limit]=15"
}
}
Allows getting Balance
with corresponding details.
id required | string Unique identifier of a balance |
include | string Enum: "asset" "state" Example: include=asset 🔒 Following relationships require an owner's or admin's signature to be included:
|
balance exists
bad input parameter
either an invalid signature has been provided or a signer has not been authorized to access specified resources
such a balance does not exist
TokenD Developer Environment
{- "data": {
- "id": "BDLXKLLVS6UIQEDYCZKIC5222GGQLCOTHM4BWXVCBDQMJTUWUFUATV2Q",
- "type": "balances",
- "relationships": {
- "asset": {
- "data": {
- "id": "USD",
- "type": "assets"
}
}, - "state": {
- "data": {
- "id": "BDLXKLLVS6UIQEDYCZKIC5222GGQLCOTHM4BWXVCBDQMJTUWUFUATV2Q",
- "type": "balances-state"
}
}, - "owner": {
- "data": {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts"
}
}
}
}, - "included": [
- {
- "id": "USD",
- "type": "assets",
- "relationships": {
- "owner": {
- "data": {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts"
}
}
}, - "attributes": {
- "pre_issuance_asset_signer": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "max_issuance_amount": "1000.000001",
- "available_for_issuance": "20.000000",
- "issued": "10.000000",
- "pending_issuance": "123.000123",
- "policies": {
- "value": 4,
- "flags": [
- {
- "value": 1,
- "name": "General"
}
]
}, - "trailing_digits": 2,
- "type": 2,
- "state": {
- "value": 1,
- "name": "General"
}, - "details": { }
}
}
]
}
Allows getting list of balances with corresponding details.
🔒 Admins signature is needed. If filter by asset is provided, the signature of asset's owner is also valid
filter[asset] | string Filters balances by asset. Returns page of balances for the provided asset |
filter[asset_owner] | any Filters balances by asset owner. Returns page of balances for the provided asset owner |
filter[owner] | string Filters balances by owner. Returns page of balances for the provided owner |
filter[amount_lw_or_eq] | integer Filters balances by amount. Returns page of balances with balance amount lower or equal then provided |
filter[amount_gt] | integer Filters balances by amount. Returns page of balances with balance amount greater then provided |
include | string Enum: "state" "owner" Relationships that may be used for the included parameter. |
page[number] | integer >= 0 Page number to return. |
page[limit] | integer [ 1 .. 100 ] Default: 15 Numbers of items per page to return. |
page[order] | string Default: "asc" Enum: "asc" "desc" Order of records on the page. If sortingParam is not specified, order of records is by default sorted by ID. |
Request is successfull
bad input parameter
either an invalid signature has been provided or a signer has not been authorized to access specified resources
TokenD Developer Environment
{- "data": [
- {
- "id": "BDLXKLLVS6UIQEDYCZKIC5222GGQLCOTHM4BWXVCBDQMJTUWUFUATV2Q",
- "type": "balances",
- "relationships": {
- "asset": {
- "data": {
- "id": "USD",
- "type": "assets"
}
}, - "state": {
- "data": {
- "id": "BDLXKLLVS6UIQEDYCZKIC5222GGQLCOTHM4BWXVCBDQMJTUWUFUATV2Q",
- "type": "balances-state"
}
}, - "owner": {
- "data": {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts"
}
}
}
}
], - "included": [ ],
- "links": {
- "next": "/v3/balances?page[number]=2&page[limit]=15",
- "self": "/v3/balances?page[number]=1&page[limit]=15"
}
}
id required | string ID of the account |
asset_code required | string ID of the collection (asset to convert balances to) |
page[number] | integer >= 0 Page number to return. |
page[limit] | integer [ 1 .. 100 ] Default: 15 Numbers of items per page to return. |
page[order] | string Default: "asc" Enum: "asc" "desc" Order of records on the page. If sortingParam is not specified, order of records is by default sorted by ID. |
balances statistic exist
bad input parameter
fees do not exist
TokenD Developer Environment
{- "data": {
- "id": "5",
- "type": "balances-statistic",
- "attributes": {
- "available_amount": "123.123456",
- "full_amount": "123.123456",
- "pending_sales_amount": "123.123456",
- "closed_sales_amount": "123.123456",
- "asset": "USD"
}
}, - "links": {
- "next": "/v3/fees?include=asset&page[number]=2&page[limit]=15",
- "self": "/v3/fees?include=asset&page[number]=1&page[limit]=15"
}
}
Allows getting list of balances converted to provided asset.
🔒 Either account or admin signature is needed. If filter by asset owner is provided, the signature of asset's owner is also valid
id required | string ID of the account |
asset_code required | string ID of the collection (asset to convert balances to) |
filter[asset_owner] | any Filters balances by asset owner. Returns page of balances for the provided asset owner |
include | string Enum: "asset" "states" "balance" "balance.state" "balance.asset" Example: include=states Relationships that may be used for the |
balances collection exist
bad input parameter
either an invalid signature has been provided or a signer has not been authorized to access specified resources
either account or asset to convert states doesn't exist
TokenD Developer Environment
{- "data": {
- "id": "QTK",
- "type": "converted-balances-collections",
- "relationships": {
- "asset": {
- "data": {
- "id": "USD",
- "type": "assets"
}
}, - "states": {
- "data": [
- {
- "id": "BDLXKLLVS6UIQEDYCZKIC5222GGQLCOTHM4BWXVCBDQMJTUWUFUATV2Q",
- "type": "converted-balance-states"
}
]
}
}
}, - "included": [
- {
- "id": "BDLXKLLVS6UIQEDYCZKIC5222GGQLCOTHM4BWXVCBDQMJTUWUFUATV2Q",
- "type": "converted-balance-states",
- "attributes": {
- "price": "2.331001",
- "initial_amounts": {
- "available": "123.000123",
- "locked": "221.092100"
}, - "converted_amounts": {
- "available": "123.000123",
- "locked": "221.092100"
}, - "is_converted": true
}, - "relationships": {
- "balance": {
- "data": {
- "id": "BDLXKLLVS6UIQEDYCZKIC5222GGQLCOTHM4BWXVCBDQMJTUWUFUATV2Q",
- "type": "balances"
}
}
}
}
]
}
Allows calculating a fee for an account.
asset required | string Unique identifier of an asset |
fee_type required | integer Type of fee |
subtype required | integer Subtype of fee |
amount required | string Amount to calculate on which fee is based on |
fee does exist and is calculated successfuly
bad input parameter
internal error occured during the request processing
TokenD Developer Environment
{- "data": {
- "id": "a343e3cbcc72928a571778f77bf2554eb5b72c79ce28bbc9d3325c60c21e5241",
- "type": "calculated-fee",
- "attributes": {
- "fixed": 486000000,
- "calculated_percent": 4000000
}
}
}
Allows getting a filtered list of Fee
with corresponding details.
filter[asset] | string Filters fees by asset. Returns page of fees for the provided asset |
filter[fee_type] | integer Filters fees by type. |
filter[subtype] | integer Filters fees by subtype. |
filter[account] | string Filters fees by account address. Returns only fees which explicitly contains this account in relationships. This means that if the fee was applied exactly for this account - it would be returned in the response. Global fees, fees for account roles and other system-wide fees would be omitted. For example if someone's, say Bob, account has a several fees applied to itself:
then we will receive only the second fee in response only it is applied to Bob's account |
filter[account_role] | integer Filters fees by account role. |
filter[lower_bound] | integer Filters fees by lower_bound. |
filter[upper_bound] | integer Filters fees by upper_bound. |
include | string Value: "asset" Relationships that may be used for the included parameter. |
page[number] | integer >= 0 Page number to return. |
page[limit] | integer [ 1 .. 100 ] Default: 15 Numbers of items per page to return. |
page[order] | string Default: "asc" Enum: "asc" "desc" Order of records on the page. If sortingParam is not specified, order of records is by default sorted by ID. |
fees exist
bad input parameter
fees do not exist
TokenD Developer Environment
{- "data": [
- {
- "id": "a343e3cbcc72928a571778f77bf2554eb5b72c79ce28bbc9d3325c60c21e5241",
- "type": "fees",
- "relationships": {
- "asset": {
- "data": {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts"
}
}, - "account": {
- "data": {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts"
}
}, - "account_role": {
- "data": {
- "id": "4581",
- "type": "account-roles"
}
}
}, - "attributes": {
- "fixed": "1123456",
- "percent": "234",
- "applied_to": {
- "asset": "USD",
- "subtype": 1,
- "fee_type": 2,
- "fee_type_extended": {
- "value": 1,
- "name": "General"
}, - "lower_bound": "123.123456",
- "upper_bound": "321.654321"
}
}
}
], - "included": [
- {
- "id": "USD",
- "type": "assets",
- "relationships": {
- "owner": {
- "data": {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts"
}
}
}, - "attributes": {
- "pre_issuance_asset_signer": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "max_issuance_amount": "1000.000001",
- "available_for_issuance": "20.000000",
- "issued": "10.000000",
- "pending_issuance": "123.000123",
- "policies": {
- "value": 4,
- "flags": [
- {
- "value": 1,
- "name": "General"
}
]
}, - "trailing_digits": 2,
- "type": 2,
- "state": {
- "value": 1,
- "name": "General"
}, - "details": { }
}
}
], - "links": {
- "next": "/v3/fees?include=asset&page[number]=2&page[limit]=15",
- "self": "/v3/fees?include=asset&page[number]=1&page[limit]=15"
}
}
Allows getting CreateAmlAlert
by ID
🔒 Requestor's or reviewer's signature is needed
filter[requestor] | string Filters requests by requestor - source of the operation. |
filter[reviewer] | string Filters requests by reviewer - account assigned to review requests. |
filter[state] | integer [ 1 .. 5 ] Filters requests by their state.
|
filter[pending_tasks] | integer Filters requests by existing tasks in pending tasks bit mask. Returns requests if all bits are set. |
filter[pending_tasks_not_set] | integer Filters requests by existing tasks in pending tasks bit mask. Returns requests if none of bits is set. |
filter[pending_tasks_any_of] | integer Filters requests by existing tasks in pending tasks bit mask. Returns requests if at least one bit is set. |
filter[request_details.balance] | string Filters create aml alert requests by balance. |
include | string Enum: "request_details" "request_details.balance" Relationships that may be used for the included parameter. |
requests exist
bad input parameter
either an invalid signature has been provided or a signer has not been authorized to access specified resources
request does not exist
TokenD Developer Environment
{- "data": {
- "id": "12345",
- "type": "requests",
- "relationships": {
- "requestor": {
- "data": {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts"
}
}, - "reviewer": {
- "data": {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts"
}
}, - "request_details": {
- "data": {
- "id": "5",
- "type": "request-details-asset-create"
}
}
}, - "attributes": {
- "reject_reason": "source account underfunded",
- "hash": "13935d561f9ec54341243e6afaf0c8bf936928b07f6600204ba8ca550757d0a6",
- "all_tasks": 12,
- "pending_tasks": 2,
- "created_at": "2012-11-01T22:08:41+00:00",
- "updated_at": "2012-11-01T22:08:41+00:00",
- "state": "pending",
- "state_i": 0,
- "reference": "719111a51cfc5ad214e4e90ce6610f10e1cba165fd1bc9db73a031352b3bb61c",
- "external_details": { },
- "xdr_type": {
- "value": 1,
- "name": "General"
}
}
}, - "included": [
- {
- "id": "5",
- "type": "request-details-aml-alert",
- "relationships": {
- "balance": {
- "data": {
- "id": "BDLXKLLVS6UIQEDYCZKIC5222GGQLCOTHM4BWXVCBDQMJTUWUFUATV2Q",
- "type": "balances"
}
}
}, - "attributes": {
- "amount": "1000.123456",
- "creator_details": { }
}
}
]
}
Allows getting a filtered list of CreateAmlAlertRequest
with details
🔒 Requestor's or reviewer's signature is needed
filter[requestor] | string Filters requests by requestor - source of the operation. |
filter[reviewer] | string Filters requests by reviewer - account assigned to review requests. |
filter[state] | integer [ 1 .. 5 ] Filters requests by their state.
|
filter[pending_tasks] | integer Filters requests by existing tasks in pending tasks bit mask. Returns requests if all bits are set. |
filter[pending_tasks_not_set] | integer Filters requests by existing tasks in pending tasks bit mask. Returns requests if none of bits is set. |
filter[pending_tasks_any_of] | integer Filters requests by existing tasks in pending tasks bit mask. Returns requests if at least one bit is set. |
filter[request_details.balance] | string Filters create aml alert requests by balance. |
include | string Enum: "request_details" "request_details.balance" Relationships that may be used for the included parameter. |
page[number] | integer >= 0 Page number to return. |
page[limit] | integer [ 1 .. 100 ] Default: 15 Numbers of items per page to return. |
page[order] | string Default: "asc" Enum: "asc" "desc" Order of records on the page. If sortingParam is not specified, order of records is by default sorted by ID. |
requests exist
bad input parameter
either an invalid signature has been provided or a signer has not been authorized to access specified resources
requests do not exist
TokenD Developer Environment
{- "data": [
- {
- "id": "12345",
- "type": "requests",
- "relationships": {
- "requestor": {
- "data": {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts"
}
}, - "reviewer": {
- "data": {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts"
}
}, - "request_details": {
- "data": {
- "id": "5",
- "type": "request-details-asset-create"
}
}
}, - "attributes": {
- "reject_reason": "source account underfunded",
- "hash": "13935d561f9ec54341243e6afaf0c8bf936928b07f6600204ba8ca550757d0a6",
- "all_tasks": 12,
- "pending_tasks": 2,
- "created_at": "2012-11-01T22:08:41+00:00",
- "updated_at": "2012-11-01T22:08:41+00:00",
- "state": "pending",
- "state_i": 0,
- "reference": "719111a51cfc5ad214e4e90ce6610f10e1cba165fd1bc9db73a031352b3bb61c",
- "external_details": { },
- "xdr_type": {
- "value": 1,
- "name": "General"
}
}
}
], - "included": [
- {
- "id": "5",
- "type": "request-details-aml-alert",
- "relationships": {
- "balance": {
- "data": {
- "id": "BDLXKLLVS6UIQEDYCZKIC5222GGQLCOTHM4BWXVCBDQMJTUWUFUATV2Q",
- "type": "balances"
}
}
}, - "attributes": {
- "amount": "1000.123456",
- "creator_details": { }
}
}
], - "links": {
- "next": "/v3/create_aml_alert_requests?include=details&page[number]=2&page[limit]=15",
- "self": "/v3/create_aml_alert_requests?include=details&page[number]=1&page[limit]=15"
}
}
Allows getting CreateIssuance
by ID
🔒 Requestor's or reviewer's signature is needed
filter[requestor] | string Filters requests by requestor - source of the operation. |
filter[reviewer] | string Filters requests by reviewer - account assigned to review requests. |
filter[state] | integer [ 1 .. 5 ] Filters requests by their state.
|
filter[pending_tasks] | integer Filters requests by existing tasks in pending tasks bit mask. Returns requests if all bits are set. |
filter[pending_tasks_not_set] | integer Filters requests by existing tasks in pending tasks bit mask. Returns requests if none of bits is set. |
filter[pending_tasks_any_of] | integer Filters requests by existing tasks in pending tasks bit mask. Returns requests if at least one bit is set. |
filter[request_details.asset] | string Filters preissuance create requests by asset code. |
include | string Enum: "request_details" "request_details.asset" Relationships that may be used for the included parameter. |
requests exist
bad input parameter
either an invalid signature has been provided or a signer has not been authorized to access specified resources
request does not exist
TokenD Developer Environment
{- "data": {
- "id": "12345",
- "type": "requests",
- "relationships": {
- "requestor": {
- "data": {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts"
}
}, - "reviewer": {
- "data": {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts"
}
}, - "request_details": {
- "data": {
- "id": "5",
- "type": "request-details-asset-create"
}
}
}, - "attributes": {
- "reject_reason": "source account underfunded",
- "hash": "13935d561f9ec54341243e6afaf0c8bf936928b07f6600204ba8ca550757d0a6",
- "all_tasks": 12,
- "pending_tasks": 2,
- "created_at": "2012-11-01T22:08:41+00:00",
- "updated_at": "2012-11-01T22:08:41+00:00",
- "state": "pending",
- "state_i": 0,
- "reference": "719111a51cfc5ad214e4e90ce6610f10e1cba165fd1bc9db73a031352b3bb61c",
- "external_details": { },
- "xdr_type": {
- "value": 1,
- "name": "General"
}
}
}, - "included": [
- {
- "id": "5",
- "type": "request-details-issuance",
- "relationships": {
- "asset": {
- "data": {
- "id": "USD",
- "type": "assets"
}
}, - "receiver": {
- "data": {
- "id": "BDLXKLLVS6UIQEDYCZKIC5222GGQLCOTHM4BWXVCBDQMJTUWUFUATV2Q",
- "type": "balances"
}
}
}, - "attributes": {
- "amount": "1000.123456",
- "creator_details": { }
}
}
]
}
Allows getting a filtered list of CreateIssuanceRequest
with details
🔒 Requestor's, reviewer's or receiving balance owner signature is needed
filter[requestor] | string Filters requests by requestor - source of the operation. |
filter[reviewer] | string Filters requests by reviewer - account assigned to review requests. |
filter[state] | integer [ 1 .. 5 ] Filters requests by their state.
|
filter[pending_tasks] | integer Filters requests by existing tasks in pending tasks bit mask. Returns requests if all bits are set. |
filter[pending_tasks_not_set] | integer Filters requests by existing tasks in pending tasks bit mask. Returns requests if none of bits is set. |
filter[pending_tasks_any_of] | integer Filters requests by existing tasks in pending tasks bit mask. Returns requests if at least one bit is set. |
filter[request_details.asset] | string Filters issuance create requests by asset code. |
filter[request_details.receiver] | string Filters requests by receiver balance |
include | string Enum: "request_details" "request_details.asset" Relationships that may be used for the included parameter. |
page[number] | integer >= 0 Page number to return. |
page[limit] | integer [ 1 .. 100 ] Default: 15 Numbers of items per page to return. |
page[order] | string Default: "asc" Enum: "asc" "desc" Order of records on the page. If sortingParam is not specified, order of records is by default sorted by ID. |
requests exist
bad input parameter
either an invalid signature has been provided or a signer has not been authorized to access specified resources
requests do not exist
TokenD Developer Environment
{- "data": [
- {
- "id": "12345",
- "type": "requests",
- "relationships": {
- "requestor": {
- "data": {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts"
}
}, - "reviewer": {
- "data": {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts"
}
}, - "request_details": {
- "data": {
- "id": "5",
- "type": "request-details-asset-create"
}
}
}, - "attributes": {
- "reject_reason": "source account underfunded",
- "hash": "13935d561f9ec54341243e6afaf0c8bf936928b07f6600204ba8ca550757d0a6",
- "all_tasks": 12,
- "pending_tasks": 2,
- "created_at": "2012-11-01T22:08:41+00:00",
- "updated_at": "2012-11-01T22:08:41+00:00",
- "state": "pending",
- "state_i": 0,
- "reference": "719111a51cfc5ad214e4e90ce6610f10e1cba165fd1bc9db73a031352b3bb61c",
- "external_details": { },
- "xdr_type": {
- "value": 1,
- "name": "General"
}
}
}
], - "included": [
- {
- "id": "5",
- "type": "request-details-issuance",
- "relationships": {
- "asset": {
- "data": {
- "id": "USD",
- "type": "assets"
}
}, - "receiver": {
- "data": {
- "id": "BDLXKLLVS6UIQEDYCZKIC5222GGQLCOTHM4BWXVCBDQMJTUWUFUATV2Q",
- "type": "balances"
}
}
}, - "attributes": {
- "amount": "1000.123456",
- "creator_details": { }
}
}
], - "links": {
- "next": "/v3/issuance_create_requests?include=details&page[number]=2&page[limit]=15",
- "self": "/v3/issuance_create_requests?include=details&page[number]=1&page[limit]=15"
}
}
Allows getting CreateWithdraw
by ID
🔒 Requestor's or reviewer's signature is needed
filter[requestor] | string Filters requests by requestor - source of the operation. |
filter[reviewer] | string Filters requests by reviewer - account assigned to review requests. |
filter[state] | integer [ 1 .. 5 ] Filters requests by their state.
|
filter[pending_tasks] | integer Filters requests by existing tasks in pending tasks bit mask. Returns requests if all bits are set. |
filter[pending_tasks_not_set] | integer Filters requests by existing tasks in pending tasks bit mask. Returns requests if none of bits is set. |
filter[pending_tasks_any_of] | integer Filters requests by existing tasks in pending tasks bit mask. Returns requests if at least one bit is set. |
filter[request_details.balance] | string Filters create_withdraw requests by balance. |
filter[request_details.asset] | string Filters create withdraw requests by asset. |
include | string Enum: "request_details" "request_details.balance" "request_details.asset" Relationships that may be used for the included parameter. |
requests exist
bad input parameter
either an invalid signature has been provided or a signer has not been authorized to access specified resources
request does not exist
TokenD Developer Environment
{- "data": {
- "id": "12345",
- "type": "requests",
- "relationships": {
- "requestor": {
- "data": {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts"
}
}, - "reviewer": {
- "data": {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts"
}
}, - "request_details": {
- "data": {
- "id": "5",
- "type": "request-details-asset-create"
}
}
}, - "attributes": {
- "reject_reason": "source account underfunded",
- "hash": "13935d561f9ec54341243e6afaf0c8bf936928b07f6600204ba8ca550757d0a6",
- "all_tasks": 12,
- "pending_tasks": 2,
- "created_at": "2012-11-01T22:08:41+00:00",
- "updated_at": "2012-11-01T22:08:41+00:00",
- "state": "pending",
- "state_i": 0,
- "reference": "719111a51cfc5ad214e4e90ce6610f10e1cba165fd1bc9db73a031352b3bb61c",
- "external_details": { },
- "xdr_type": {
- "value": 1,
- "name": "General"
}
}
}, - "included": [
- {
- "id": "5",
- "type": "request-details-withdrawal",
- "relationships": {
- "balance": {
- "data": {
- "id": "BDLXKLLVS6UIQEDYCZKIC5222GGQLCOTHM4BWXVCBDQMJTUWUFUATV2Q",
- "type": "balances"
}
}, - "asset": {
- "data": {
- "id": "USD",
- "type": "assets"
}
}
}, - "attributes": {
- "amount": "1000.123456",
- "fee": {
- "fixed": 486000000,
- "calculated_percent": 4000000
}, - "creator_details": { }
}
}
]
}
Allows getting a filtered list of CreateWithdrawRequest
with details
🔒 Requestor's or reviewer's signature is needed
filter[requestor] | string Filters requests by requestor - source of the operation. |
filter[reviewer] | string Filters requests by reviewer - account assigned to review requests. |
filter[state] | integer [ 1 .. 5 ] Filters requests by their state.
|
filter[pending_tasks] | integer Filters requests by existing tasks in pending tasks bit mask. Returns requests if all bits are set. |
filter[pending_tasks_not_set] | integer Filters requests by existing tasks in pending tasks bit mask. Returns requests if none of bits is set. |
filter[pending_tasks_any_of] | integer Filters requests by existing tasks in pending tasks bit mask. Returns requests if at least one bit is set. |
filter[request_details.balance] | string Filters create_withdraw requests by balance. |
filter[request_details.asset] | Array of strings Filters create withdraw requests by assets to be withdrawn. |
include | string Enum: "request_details" "request_details.balance" "request_details.asset" Relationships that may be used for the included parameter. |
page[number] | integer >= 0 Page number to return. |
page[limit] | integer [ 1 .. 100 ] Default: 15 Numbers of items per page to return. |
page[order] | string Default: "asc" Enum: "asc" "desc" Order of records on the page. If sortingParam is not specified, order of records is by default sorted by ID. |
requests exist
bad input parameter
either an invalid signature has been provided or a signer has not been authorized to access specified resources
requests do not exist
TokenD Developer Environment
{- "data": [
- {
- "id": "12345",
- "type": "requests",
- "relationships": {
- "requestor": {
- "data": {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts"
}
}, - "reviewer": {
- "data": {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts"
}
}, - "request_details": {
- "data": {
- "id": "5",
- "type": "request-details-asset-create"
}
}
}, - "attributes": {
- "reject_reason": "source account underfunded",
- "hash": "13935d561f9ec54341243e6afaf0c8bf936928b07f6600204ba8ca550757d0a6",
- "all_tasks": 12,
- "pending_tasks": 2,
- "created_at": "2012-11-01T22:08:41+00:00",
- "updated_at": "2012-11-01T22:08:41+00:00",
- "state": "pending",
- "state_i": 0,
- "reference": "719111a51cfc5ad214e4e90ce6610f10e1cba165fd1bc9db73a031352b3bb61c",
- "external_details": { },
- "xdr_type": {
- "value": 1,
- "name": "General"
}
}
}
], - "included": [
- {
- "id": "5",
- "type": "request-details-withdrawal",
- "relationships": {
- "balance": {
- "data": {
- "id": "BDLXKLLVS6UIQEDYCZKIC5222GGQLCOTHM4BWXVCBDQMJTUWUFUATV2Q",
- "type": "balances"
}
}, - "asset": {
- "data": {
- "id": "USD",
- "type": "assets"
}
}
}, - "attributes": {
- "amount": "1000.123456",
- "fee": {
- "fixed": 486000000,
- "calculated_percent": 4000000
}, - "creator_details": { }
}
}
], - "links": {
- "next": "/v3/create_withdraw_requests?include=details&page[number]=2&page[limit]=15",
- "self": "/v3/create_withdraw_requests?include=details&page[number]=1&page[limit]=15"
}
}
Allows getting Atomic Swap Ask
with corresponding details.
id required | string Unique identifier of an atomic swap ask (id) |
include | string Enum: "base_balance" "owner" "base_asset" "quote_assets" Relationships that may be used for the included parameter. |
atomic swap ask exists
bad input parameter
asset does not exist
TokenD Developer Environment
{- "data": {
- "id": "4",
- "type": "atomic-swap-ask",
- "attributes": {
- "details": { },
- "available_amount": "5.000000",
- "locked_amount": "10.000000",
- "created_at": "2012-11-01T22:08:41+00:00",
- "is_canceled": true
}, - "relationships": {
- "owner": {
- "data": {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts"
}
}, - "base_balance": {
- "data": {
- "id": "BDLXKLLVS6UIQEDYCZKIC5222GGQLCOTHM4BWXVCBDQMJTUWUFUATV2Q",
- "type": "balances"
}
}, - "quote_assets": {
- "data": [
- {
- "id": "5",
- "type": "atomic-swap-quote-assets"
}
]
}, - "base_asset": {
- "data": {
- "id": "USD",
- "type": "assets"
}
}
}
}, - "included": [
- {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts",
- "attributes": {
- "kyc_recovery_status": {
- "value": 1,
- "name": "General"
}
}, - "relationships": {
- "signers": {
- "data": [
- {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "signers"
}
]
}, - "referrer": {
- "data": {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts"
}
}, - "balances": {
- "data": [
- {
- "id": "BDLXKLLVS6UIQEDYCZKIC5222GGQLCOTHM4BWXVCBDQMJTUWUFUATV2Q",
- "type": "balances"
}
]
}, - "limits": {
- "data": [
- {
- "id": "1",
- "type": "limits"
}
]
}, - "external_system_ids": {
- "data": [
- {
- "id": "1",
- "type": "external-system-ids"
}
]
}, - "role": {
- "data": {
- "id": "4581",
- "type": "account-roles"
}
}, - "fees": {
- "data": [
- {
- "id": "a343e3cbcc72928a571778f77bf2554eb5b72c79ce28bbc9d3325c60c21e5241",
- "type": "fees"
}
]
}, - "limits_with_stats": {
- "data": [
- {
- "id": "1",
- "type": "limits-with-stats"
}
]
}, - "kyc_data": {
- "data": {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "account-kyc"
}
}
}
}
]
}
Allows getting a filtered list of Atomic Swap Ask
with corresponding details.
filter[base_asset] | integer Filters atomic swap asks by a base asset. |
filter[owner] | string Filters atomic swap asks by a specified owner's account address. |
filter[quote_assets] | Array of strings Filters atomic swap asks by quote assets. Returns the page of atomic swap asks where all quote assets present. |
include | string Enum: "base_balance" "owner" "base_asset" "quote_assets" Relationships that may be used for the included parameter. |
page[number] | integer >= 0 Page number to return. |
page[limit] | integer [ 1 .. 100 ] Default: 15 Numbers of items per page to return. |
page[order] | string Default: "asc" Enum: "asc" "desc" Order of records on the page. If sortingParam is not specified, order of records is by default sorted by ID. |
atomic swap ask exists
bad input parameter
asset does not exist
TokenD Developer Environment
{- "data": [
- {
- "id": "4",
- "type": "atomic-swap-ask",
- "attributes": {
- "details": { },
- "available_amount": "5.000000",
- "locked_amount": "10.000000",
- "created_at": "2012-11-01T22:08:41+00:00",
- "is_canceled": true
}, - "relationships": {
- "owner": {
- "data": {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts"
}
}, - "base_balance": {
- "data": {
- "id": "BDLXKLLVS6UIQEDYCZKIC5222GGQLCOTHM4BWXVCBDQMJTUWUFUATV2Q",
- "type": "balances"
}
}, - "quote_assets": {
- "data": [
- {
- "id": "5",
- "type": "atomic-swap-quote-assets"
}
]
}, - "base_asset": {
- "data": {
- "id": "USD",
- "type": "assets"
}
}
}
}
], - "included": [
- {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts",
- "attributes": {
- "kyc_recovery_status": {
- "value": 1,
- "name": "General"
}
}, - "relationships": {
- "signers": {
- "data": [
- {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "signers"
}
]
}, - "referrer": {
- "data": {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts"
}
}, - "balances": {
- "data": [
- {
- "id": "BDLXKLLVS6UIQEDYCZKIC5222GGQLCOTHM4BWXVCBDQMJTUWUFUATV2Q",
- "type": "balances"
}
]
}, - "limits": {
- "data": [
- {
- "id": "1",
- "type": "limits"
}
]
}, - "external_system_ids": {
- "data": [
- {
- "id": "1",
- "type": "external-system-ids"
}
]
}, - "role": {
- "data": {
- "id": "4581",
- "type": "account-roles"
}
}, - "fees": {
- "data": [
- {
- "id": "a343e3cbcc72928a571778f77bf2554eb5b72c79ce28bbc9d3325c60c21e5241",
- "type": "fees"
}
]
}, - "limits_with_stats": {
- "data": [
- {
- "id": "1",
- "type": "limits-with-stats"
}
]
}, - "kyc_data": {
- "data": {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "account-kyc"
}
}
}
}
], - "links": {
- "next": "/v3/assets?include=owner&page[number]=2&page[limit]=15",
- "self": "/v3/assets?include=owner&page[number]=1&page[limit]=15"
}
}
Allows getting CreateAtomicSwapAsk
by ID
🔒 Requestor's or reviewer's signature is needed
filter[requestor] | string Filters requests by requestor - source of the operation. |
filter[reviewer] | string Filters requests by reviewer - account assigned to review requests. |
filter[state] | integer [ 1 .. 5 ] Filters requests by their state.
|
filter[pending_tasks] | integer Filters requests by existing tasks in pending tasks bit mask. Returns requests if all bits are set. |
filter[pending_tasks_not_set] | integer Filters requests by existing tasks in pending tasks bit mask. Returns requests if none of bits is set. |
filter[pending_tasks_any_of] | integer Filters requests by existing tasks in pending tasks bit mask. Returns requests if at least one bit is set. |
filter[request_details.base_balance] | string Filters create_atomic_swap_ask requests by base balance. |
include | string Enum: "request_details" "request_details.base_balance" "request_details.quote_assets" Relationships that may be used for the included parameter. |
requests exist
bad input parameter
either an invalid signature has been provided or a signer has not been authorized to access specified resources
request does not exist
TokenD Developer Environment
{- "data": {
- "id": "12345",
- "type": "requests",
- "relationships": {
- "requestor": {
- "data": {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts"
}
}, - "reviewer": {
- "data": {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts"
}
}, - "request_details": {
- "data": {
- "id": "5",
- "type": "request-details-asset-create"
}
}
}, - "attributes": {
- "reject_reason": "source account underfunded",
- "hash": "13935d561f9ec54341243e6afaf0c8bf936928b07f6600204ba8ca550757d0a6",
- "all_tasks": 12,
- "pending_tasks": 2,
- "created_at": "2012-11-01T22:08:41+00:00",
- "updated_at": "2012-11-01T22:08:41+00:00",
- "state": "pending",
- "state_i": 0,
- "reference": "719111a51cfc5ad214e4e90ce6610f10e1cba165fd1bc9db73a031352b3bb61c",
- "external_details": { },
- "xdr_type": {
- "value": 1,
- "name": "General"
}
}
}, - "included": [
- {
- "id": "5",
- "type": "request-details-atomic-swap-ask",
- "relationships": {
- "base_balance": {
- "data": {
- "id": "BDLXKLLVS6UIQEDYCZKIC5222GGQLCOTHM4BWXVCBDQMJTUWUFUATV2Q",
- "type": "balances"
}
}, - "quote_assets": {
- "data": [
- {
- "id": "USD",
- "type": "assets"
}
]
}
}, - "attributes": {
- "base_amount": "100.000001",
- "creator_details": { }
}
}
]
}
Allows getting a filtered list of CreateAtomicSwapAskRequest
with details
🔒 Requestor's or reviewer's signature is needed
filter[requestor] | string Filters requests by requestor - source of the operation. |
filter[reviewer] | string Filters requests by reviewer - account assigned to review requests. |
filter[state] | integer [ 1 .. 5 ] Filters requests by their state.
|
filter[pending_tasks] | integer Filters requests by existing tasks in pending tasks bit mask. Returns requests if all bits are set. |
filter[pending_tasks_not_set] | integer Filters requests by existing tasks in pending tasks bit mask. Returns requests if none of bits is set. |
filter[pending_tasks_any_of] | integer Filters requests by existing tasks in pending tasks bit mask. Returns requests if at least one bit is set. |
filter[request_details.base_balance] | string Filters create_atomic_swap_ask requests by balance. |
include | string Enum: "request_details" "request_details.base_balance" "request_details.quote_assets" Relationships that may be used for the included parameter. |
page[number] | integer >= 0 Page number to return. |
page[limit] | integer [ 1 .. 100 ] Default: 15 Numbers of items per page to return. |
page[order] | string Default: "asc" Enum: "asc" "desc" Order of records on the page. If sortingParam is not specified, order of records is by default sorted by ID. |
requests exist
bad input parameter
either an invalid signature has been provided or a signer has not been authorized to access specified resources
requests do not exist
TokenD Developer Environment
{- "data": [
- {
- "id": "12345",
- "type": "requests",
- "relationships": {
- "requestor": {
- "data": {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts"
}
}, - "reviewer": {
- "data": {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts"
}
}, - "request_details": {
- "data": {
- "id": "5",
- "type": "request-details-asset-create"
}
}
}, - "attributes": {
- "reject_reason": "source account underfunded",
- "hash": "13935d561f9ec54341243e6afaf0c8bf936928b07f6600204ba8ca550757d0a6",
- "all_tasks": 12,
- "pending_tasks": 2,
- "created_at": "2012-11-01T22:08:41+00:00",
- "updated_at": "2012-11-01T22:08:41+00:00",
- "state": "pending",
- "state_i": 0,
- "reference": "719111a51cfc5ad214e4e90ce6610f10e1cba165fd1bc9db73a031352b3bb61c",
- "external_details": { },
- "xdr_type": {
- "value": 1,
- "name": "General"
}
}
}
], - "included": [
- {
- "id": "5",
- "type": "request-details-atomic-swap-ask",
- "relationships": {
- "base_balance": {
- "data": {
- "id": "BDLXKLLVS6UIQEDYCZKIC5222GGQLCOTHM4BWXVCBDQMJTUWUFUATV2Q",
- "type": "balances"
}
}, - "quote_assets": {
- "data": [
- {
- "id": "USD",
- "type": "assets"
}
]
}
}, - "attributes": {
- "base_amount": "100.000001",
- "creator_details": { }
}
}
], - "links": {
- "next": "/v3/create_atomic_swap_bid_requests?include=details&page[number]=2&page[limit]=15",
- "self": "/v3/create_atomic_swap_bid_requests?include=details&page[number]=1&page[limit]=15"
}
}
Allows getting CreateAtomicSwapBid
by ID
🔒 Requestor's or reviewer's signature is needed
filter[requestor] | string Filters requests by requestor - source of the operation. |
filter[reviewer] | string Filters requests by reviewer - account assigned to review requests. |
filter[state] | integer [ 1 .. 5 ] Filters requests by their state.
|
filter[pending_tasks] | integer Filters requests by existing tasks in pending tasks bit mask. Returns requests if all bits are set. |
filter[pending_tasks_not_set] | integer Filters requests by existing tasks in pending tasks bit mask. Returns requests if none of bits is set. |
filter[pending_tasks_any_of] | integer Filters requests by existing tasks in pending tasks bit mask. Returns requests if at least one bit is set. |
filter[request_details.quote_asset] | string Filters create_atomic_swap_bid requests by quote asset. |
include | string Enum: "request_details" "request_details.quote_asset" Relationships that may be used for the included parameter. |
requests exist
bad input parameter
either an invalid signature has been provided or a signer has not been authorized to access specified resources
request does not exist
TokenD Developer Environment
{- "data": {
- "id": "12345",
- "type": "requests",
- "relationships": {
- "requestor": {
- "data": {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts"
}
}, - "reviewer": {
- "data": {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts"
}
}, - "request_details": {
- "data": {
- "id": "5",
- "type": "request-details-asset-create"
}
}
}, - "attributes": {
- "reject_reason": "source account underfunded",
- "hash": "13935d561f9ec54341243e6afaf0c8bf936928b07f6600204ba8ca550757d0a6",
- "all_tasks": 12,
- "pending_tasks": 2,
- "created_at": "2012-11-01T22:08:41+00:00",
- "updated_at": "2012-11-01T22:08:41+00:00",
- "state": "pending",
- "state_i": 0,
- "reference": "719111a51cfc5ad214e4e90ce6610f10e1cba165fd1bc9db73a031352b3bb61c",
- "external_details": { },
- "xdr_type": {
- "value": 1,
- "name": "General"
}
}
}, - "included": [
- {
- "id": "5",
- "type": "request-details-atomic-swap-bid",
- "relationships": {
- "ask": {
- "data": {
- "id": "4",
- "type": "atomic-swap-ask"
}
}, - "quote_asset": {
- "data": {
- "id": "5",
- "type": "quote-assets"
}
}
}, - "attributes": {
- "base_amount": "100.000001",
- "creator_details": { }
}
}
]
}
Allows getting a filtered list of CreateAtomicSwapBidRequest
with details
🔒 Requestor's or reviewer's signature is needed
filter[requestor] | string Filters requests by requestor - source of the operation. |
filter[reviewer] | string Filters requests by reviewer - account assigned to review requests. |
filter[state] | integer [ 1 .. 5 ] Filters requests by their state.
|
filter[pending_tasks] | integer Filters requests by existing tasks in pending tasks bit mask. Returns requests if all bits are set. |
filter[pending_tasks_not_set] | integer Filters requests by existing tasks in pending tasks bit mask. Returns requests if none of bits is set. |
filter[pending_tasks_any_of] | integer Filters requests by existing tasks in pending tasks bit mask. Returns requests if at least one bit is set. |
filter[request_details.quote_asset] | string Filters atomic swap bid requests by quote asset. |
filter[request_details.ask_id] | integer Filters atomic swap bid requests by atomic swap ask id. |
filter[request_details.ask_owner] | integer Filters atomic swap bid requests by atomic swap ask owner id. |
include | string Enum: "request_details" "request_details.quote_asset" Relationships that may be used for the included parameter. |
page[number] | integer >= 0 Page number to return. |
page[limit] | integer [ 1 .. 100 ] Default: 15 Numbers of items per page to return. |
page[order] | string Default: "asc" Enum: "asc" "desc" Order of records on the page. If sortingParam is not specified, order of records is by default sorted by ID. |
requests exist
bad input parameter
either an invalid signature has been provided or a signer has not been authorized to access specified resources
requests do not exist
TokenD Developer Environment
{- "data": [
- {
- "id": "12345",
- "type": "requests",
- "relationships": {
- "requestor": {
- "data": {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts"
}
}, - "reviewer": {
- "data": {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts"
}
}, - "request_details": {
- "data": {
- "id": "5",
- "type": "request-details-asset-create"
}
}
}, - "attributes": {
- "reject_reason": "source account underfunded",
- "hash": "13935d561f9ec54341243e6afaf0c8bf936928b07f6600204ba8ca550757d0a6",
- "all_tasks": 12,
- "pending_tasks": 2,
- "created_at": "2012-11-01T22:08:41+00:00",
- "updated_at": "2012-11-01T22:08:41+00:00",
- "state": "pending",
- "state_i": 0,
- "reference": "719111a51cfc5ad214e4e90ce6610f10e1cba165fd1bc9db73a031352b3bb61c",
- "external_details": { },
- "xdr_type": {
- "value": 1,
- "name": "General"
}
}
}
], - "included": [
- {
- "id": "5",
- "type": "request-details-atomic-swap-bid",
- "relationships": {
- "ask": {
- "data": {
- "id": "4",
- "type": "atomic-swap-ask"
}
}, - "quote_asset": {
- "data": {
- "id": "5",
- "type": "quote-assets"
}
}
}, - "attributes": {
- "base_amount": "100.000001",
- "creator_details": { }
}
}
], - "links": {
- "next": "/v3/create_atomic_swap_requests?include=details&page[number]=2&page[limit]=15",
- "self": "/v3/create_atomic_swap_requests?include=details&page[number]=1&page[limit]=15"
}
}
Allows getting Swap
with corresponding details.
🔒 Admin, swap source, or swap destination signature is required
id required | integer <int64> Example: 10 Unique identifier of a swap |
include | string Enum: "source_balance" "destination_balance" "asset" Relationships that may be used for the included parameter. |
filter[source] | string Filters swaps by a specified source's account address. |
filter[destination] | string Filters swaps by a specified destination's account address. |
filter[destination_balance] | string Filters swaps by a specified destination's balance address. |
filter[source_balance] | string Filters swaps by a specified source's balance address. |
filter[state] | integer Example: filter[state]=1 Filters sales by a specified sale state. Available sale states:
|
swap exists
bad input parameter
either an invalid signature has been provided or a signer has not been authorized to access specified resources
swap does not exist
TokenD Developer Environment
{- "data": {
- "id": "5",
- "type": "swaps",
- "attributes": {
- "created_at": "2012-11-01T22:08:41+00:00",
- "lock_time": "2012-11-01T22:08:41+00:00",
- "state": 2,
- "secret_hash": "string",
- "amount": "123.123456",
- "source_fee": {
- "fixed": 486000000,
- "calculated_percent": 4000000
}, - "destination_fee": {
- "fixed": 486000000,
- "calculated_percent": 4000000
}, - "details": { },
- "secret": "string"
}, - "relationships": {
- "source": {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts"
}, - "destination": {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts"
}, - "source_balance": {
- "id": "BDLXKLLVS6UIQEDYCZKIC5222GGQLCOTHM4BWXVCBDQMJTUWUFUATV2Q",
- "type": "balances"
}, - "destination_balance": {
- "id": "BDLXKLLVS6UIQEDYCZKIC5222GGQLCOTHM4BWXVCBDQMJTUWUFUATV2Q",
- "type": "balances"
}, - "asset": {
- "id": "USD",
- "type": "assets"
}
}
}, - "included": [ ]
}
Allows getting a filtered list of Swaps
with corresponding details.
🔒 Depending on the case, different signatures are required:
if no filters are applied, admin signature is required.
if filter by source is applied, signature of source is required
if filter by destination is applied, signature of destination is required
include | string Enum: "source_balance" "destination_balance" "asset" Relationships that may be used for the included parameter. |
filter[source] | string Filters swaps by a specified source's account address. |
filter[destination] | string Filters swaps by a specified destination's account address. |
filter[destination_balance] | string Filters swaps by a specified destination's balance address. |
filter[source_balance] | string Filters swaps by a specified source's balance address. |
filter[state] | integer Example: filter[state]=1 Filters sales by a specified sale state. Available sale states:
|
page[cursor] | integer >= 0 Cursor point to the end of the previous page |
page[limit] | integer [ 1 .. 100 ] Default: 15 Numbers of items per page to return. |
page[order] | string Default: "asc" Enum: "asc" "desc" Order of records on the page. If sortingParam is not specified, order of records is by default sorted by ID. |
swaps exist
bad input parameter
either an invalid signature has been provided or a signer has not been authorized to access specified resources
TokenD Developer Environment
{- "data": [
- {
- "id": "5",
- "type": "swaps",
- "attributes": {
- "created_at": "2012-11-01T22:08:41+00:00",
- "lock_time": "2012-11-01T22:08:41+00:00",
- "state": 2,
- "secret_hash": "string",
- "amount": "123.123456",
- "source_fee": {
- "fixed": 486000000,
- "calculated_percent": 4000000
}, - "destination_fee": {
- "fixed": 486000000,
- "calculated_percent": 4000000
}, - "details": { },
- "secret": "string"
}, - "relationships": {
- "source": {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts"
}, - "destination": {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts"
}, - "source_balance": {
- "id": "BDLXKLLVS6UIQEDYCZKIC5222GGQLCOTHM4BWXVCBDQMJTUWUFUATV2Q",
- "type": "balances"
}, - "destination_balance": {
- "id": "BDLXKLLVS6UIQEDYCZKIC5222GGQLCOTHM4BWXVCBDQMJTUWUFUATV2Q",
- "type": "balances"
}, - "asset": {
- "id": "USD",
- "type": "assets"
}
}
}
], - "included": [ ],
- "links": {
- "next": "/v3/swaps?page[cursor]=2&page[limit]=15",
- "self": "/v3/swaps?page[cursor]=1&page[limit]=15"
}
}
Allows getting Redemption
requests by ID
🔒 Requestor's or reviewer's signature is needed
filter[requestor] | string Filters requests by requestor - source of the operation. |
filter[reviewer] | string Filters requests by reviewer - account assigned to review requests. |
filter[state] | integer [ 1 .. 5 ] Filters requests by their state.
|
filter[pending_tasks] | integer Filters requests by existing tasks in pending tasks bit mask. Returns requests if all bits are set. |
filter[pending_tasks_not_set] | integer Filters requests by existing tasks in pending tasks bit mask. Returns requests if none of bits is set. |
filter[pending_tasks_any_of] | integer Filters requests by existing tasks in pending tasks bit mask. Returns requests if at least one bit is set. |
include | string Value: "request_details" Relationships that may be used for the included parameter. |
requests exist
bad input parameter
either an invalid signature has been provided or a signer has not been authorized to access specified resources
request does not exist
TokenD Developer Environment
{- "data": {
- "id": "12345",
- "type": "requests",
- "relationships": {
- "requestor": {
- "data": {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts"
}
}, - "reviewer": {
- "data": {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts"
}
}, - "request_details": {
- "data": {
- "id": "5",
- "type": "request-details-asset-create"
}
}
}, - "attributes": {
- "reject_reason": "source account underfunded",
- "hash": "13935d561f9ec54341243e6afaf0c8bf936928b07f6600204ba8ca550757d0a6",
- "all_tasks": 12,
- "pending_tasks": 2,
- "created_at": "2012-11-01T22:08:41+00:00",
- "updated_at": "2012-11-01T22:08:41+00:00",
- "state": "pending",
- "state_i": 0,
- "reference": "719111a51cfc5ad214e4e90ce6610f10e1cba165fd1bc9db73a031352b3bb61c",
- "external_details": { },
- "xdr_type": {
- "value": 1,
- "name": "General"
}
}
}, - "included": [
- {
- "id": "5",
- "type": "request-details-redemption",
- "relationships": {
- "source_balance": {
- "data": {
- "id": "BDLXKLLVS6UIQEDYCZKIC5222GGQLCOTHM4BWXVCBDQMJTUWUFUATV2Q",
- "type": "balances"
}
}, - "destination": {
- "data": {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts"
}
}
}, - "attributes": {
- "amount": "1000.123456",
- "creator_details": { }
}
}
]
}
Allows getting a filtered list of Redemption
with details
🔒 Requestor's or reviewer's signature is needed
filter[requestor] | string Filters requests by requestor - source of the operation. |
filter[reviewer] | string Filters requests by reviewer - account assigned to review requests. |
filter[state] | integer [ 1 .. 5 ] Filters requests by their state.
|
filter[pending_tasks] | integer Filters requests by existing tasks in pending tasks bit mask. Returns requests if all bits are set. |
filter[pending_tasks_not_set] | integer Filters requests by existing tasks in pending tasks bit mask. Returns requests if none of bits is set. |
filter[pending_tasks_any_of] | integer Filters requests by existing tasks in pending tasks bit mask. Returns requests if at least one bit is set. |
filter[request_details.base_asset] | string Filters sale requests by base asset. |
filter[request_details.default_quote_asset] | string Filters sale requests by a default quote asset. |
include | string Enum: "request_details" "request_details.base_asset" "request_details.default_quote_asset" "request_details.quote_assets" Relationships that may be used for the included parameter. |
page[number] | integer >= 0 Page number to return. |
page[limit] | integer [ 1 .. 100 ] Default: 15 Numbers of items per page to return. |
page[order] | string Default: "asc" Enum: "asc" "desc" Order of records on the page. If sortingParam is not specified, order of records is by default sorted by ID. |
requests exist
bad input parameter
either an invalid signature has been provided or a signer has not been authorized to access specified resources
requests do not exist
TokenD Developer Environment
{- "data": [
- {
- "id": "12345",
- "type": "requests",
- "relationships": {
- "requestor": {
- "data": {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts"
}
}, - "reviewer": {
- "data": {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts"
}
}, - "request_details": {
- "data": {
- "id": "5",
- "type": "request-details-asset-create"
}
}
}, - "attributes": {
- "reject_reason": "source account underfunded",
- "hash": "13935d561f9ec54341243e6afaf0c8bf936928b07f6600204ba8ca550757d0a6",
- "all_tasks": 12,
- "pending_tasks": 2,
- "created_at": "2012-11-01T22:08:41+00:00",
- "updated_at": "2012-11-01T22:08:41+00:00",
- "state": "pending",
- "state_i": 0,
- "reference": "719111a51cfc5ad214e4e90ce6610f10e1cba165fd1bc9db73a031352b3bb61c",
- "external_details": { },
- "xdr_type": {
- "value": 1,
- "name": "General"
}
}
}
], - "included": [
- {
- "id": "5",
- "type": "request-details-redemption",
- "relationships": {
- "source_balance": {
- "data": {
- "id": "BDLXKLLVS6UIQEDYCZKIC5222GGQLCOTHM4BWXVCBDQMJTUWUFUATV2Q",
- "type": "balances"
}
}, - "destination": {
- "data": {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts"
}
}
}, - "attributes": {
- "amount": "1000.123456",
- "creator_details": { }
}
}
], - "links": {
- "next": "/v3/redemption_requests?include=details&page[number]=2&page[limit]=15",
- "self": "/v3/redemption_requests?include=details&page[number]=1&page[limit]=15"
}
}
Allows getting a filtered list of CloseDeferredPayment
with details
🔒 Requestor's or reviewer's signature is needed
id required | any |
include | string Value: "request_details" Relationships that may be used for the included parameter. |
page[number] | integer >= 0 Page number to return. |
page[limit] | integer [ 1 .. 100 ] Default: 15 Numbers of items per page to return. |
page[order] | string Default: "asc" Enum: "asc" "desc" Order of records on the page. If sortingParam is not specified, order of records is by default sorted by ID. |
requests exist
bad input parameter
either an invalid signature has been provided or a signer has not been authorized to access specified resources
requests do not exist
TokenD Developer Environment
{- "deferredPayment": [
- {
- "id": "12345",
- "type": "requests",
- "relationships": {
- "requestor": {
- "data": {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts"
}
}, - "reviewer": {
- "data": {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts"
}
}, - "request_details": {
- "data": {
- "id": "5",
- "type": "request-details-asset-create"
}
}
}, - "attributes": {
- "reject_reason": "source account underfunded",
- "hash": "13935d561f9ec54341243e6afaf0c8bf936928b07f6600204ba8ca550757d0a6",
- "all_tasks": 12,
- "pending_tasks": 2,
- "created_at": "2012-11-01T22:08:41+00:00",
- "updated_at": "2012-11-01T22:08:41+00:00",
- "state": "pending",
- "state_i": 0,
- "reference": "719111a51cfc5ad214e4e90ce6610f10e1cba165fd1bc9db73a031352b3bb61c",
- "external_details": { },
- "xdr_type": {
- "value": 1,
- "name": "General"
}
}
}
], - "included": [
- {
- "id": "123",
- "type": "request-details-close-deferred-payment",
- "relationships": {
- "destination_balance": {
- "id": "BDLXKLLVS6UIQEDYCZKIC5222GGQLCOTHM4BWXVCBDQMJTUWUFUATV2Q",
- "type": "balances"
}, - "destination_account": {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts"
}, - "deferred_payment": {
- "id": "5",
- "type": "deferred-payments"
}
}, - "attributes": {
- "amount": "123.123456",
- "creator_details": { }
}
}
], - "links": {
- "next": "/v3/close_deferred_payment_requests?include=details&page[number]=2&page[limit]=15",
- "self": "/v3/close_deferred_payment_requests?include=details&page[number]=1&page[limit]=15"
}
}
Allows getting a filtered list of CloseDeferredPayment
with details
🔒 Requestor's or reviewer's signature is needed
filter[requestor] | string Filters requests by requestor - source of the operation. |
filter[reviewer] | string Filters requests by reviewer - account assigned to review requests. |
filter[state] | integer [ 1 .. 5 ] Filters requests by their state.
|
filter[pending_tasks] | integer Filters requests by existing tasks in pending tasks bit mask. Returns requests if all bits are set. |
filter[pending_tasks_not_set] | integer Filters requests by existing tasks in pending tasks bit mask. Returns requests if none of bits is set. |
filter[pending_tasks_any_of] | integer Filters requests by existing tasks in pending tasks bit mask. Returns requests if at least one bit is set. |
include | string Value: "request_details" Relationships that may be used for the included parameter. |
page[number] | integer >= 0 Page number to return. |
page[limit] | integer [ 1 .. 100 ] Default: 15 Numbers of items per page to return. |
page[order] | string Default: "asc" Enum: "asc" "desc" Order of records on the page. If sortingParam is not specified, order of records is by default sorted by ID. |
requests exist
bad input parameter
either an invalid signature has been provided or a signer has not been authorized to access specified resources
requests do not exist
TokenD Developer Environment
{- "deferredPayment": [
- {
- "id": "12345",
- "type": "requests",
- "relationships": {
- "requestor": {
- "data": {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts"
}
}, - "reviewer": {
- "data": {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts"
}
}, - "request_details": {
- "data": {
- "id": "5",
- "type": "request-details-asset-create"
}
}
}, - "attributes": {
- "reject_reason": "source account underfunded",
- "hash": "13935d561f9ec54341243e6afaf0c8bf936928b07f6600204ba8ca550757d0a6",
- "all_tasks": 12,
- "pending_tasks": 2,
- "created_at": "2012-11-01T22:08:41+00:00",
- "updated_at": "2012-11-01T22:08:41+00:00",
- "state": "pending",
- "state_i": 0,
- "reference": "719111a51cfc5ad214e4e90ce6610f10e1cba165fd1bc9db73a031352b3bb61c",
- "external_details": { },
- "xdr_type": {
- "value": 1,
- "name": "General"
}
}
}
], - "included": [
- {
- "id": "123",
- "type": "request-details-close-deferred-payment",
- "relationships": {
- "destination_balance": {
- "id": "BDLXKLLVS6UIQEDYCZKIC5222GGQLCOTHM4BWXVCBDQMJTUWUFUATV2Q",
- "type": "balances"
}, - "destination_account": {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts"
}, - "deferred_payment": {
- "id": "5",
- "type": "deferred-payments"
}
}, - "attributes": {
- "amount": "123.123456",
- "creator_details": { }
}
}
], - "links": {
- "next": "/v3/close_deferred_payment_requests?include=details&page[number]=2&page[limit]=15",
- "self": "/v3/close_deferred_payment_requests?include=details&page[number]=1&page[limit]=15"
}
}
Allows getting a filtered list of CreateDeferredPayment
with details
🔒 Requestor's or reviewer's signature is needed
id required | any |
include | string Value: "request_details" Relationships that may be used for the included parameter. |
page[number] | integer >= 0 Page number to return. |
page[limit] | integer [ 1 .. 100 ] Default: 15 Numbers of items per page to return. |
page[order] | string Default: "asc" Enum: "asc" "desc" Order of records on the page. If sortingParam is not specified, order of records is by default sorted by ID. |
requests exist
bad input parameter
either an invalid signature has been provided or a signer has not been authorized to access specified resources
requests do not exist
TokenD Developer Environment
{- "deferredPayment": [
- {
- "id": "12345",
- "type": "requests",
- "relationships": {
- "requestor": {
- "data": {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts"
}
}, - "reviewer": {
- "data": {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts"
}
}, - "request_details": {
- "data": {
- "id": "5",
- "type": "request-details-asset-create"
}
}
}, - "attributes": {
- "reject_reason": "source account underfunded",
- "hash": "13935d561f9ec54341243e6afaf0c8bf936928b07f6600204ba8ca550757d0a6",
- "all_tasks": 12,
- "pending_tasks": 2,
- "created_at": "2012-11-01T22:08:41+00:00",
- "updated_at": "2012-11-01T22:08:41+00:00",
- "state": "pending",
- "state_i": 0,
- "reference": "719111a51cfc5ad214e4e90ce6610f10e1cba165fd1bc9db73a031352b3bb61c",
- "external_details": { },
- "xdr_type": {
- "value": 1,
- "name": "General"
}
}
}
], - "included": [
- {
- "id": "123",
- "type": "request-details-create-deferred-payment",
- "relationships": {
- "source_balance": {
- "id": "BDLXKLLVS6UIQEDYCZKIC5222GGQLCOTHM4BWXVCBDQMJTUWUFUATV2Q",
- "type": "balances"
}, - "destination_account": {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts"
}
}, - "attributes": {
- "amount": "123.123456",
- "creator_details": { }
}
}
], - "links": {
- "next": "/v3/create_deferred_payment_requests?include=details&page[number]=2&page[limit]=15",
- "self": "/v3/create_deferred_payment_requests?include=details&page[number]=1&page[limit]=15"
}
}
Allows getting a filtered list of CreateDeferredPayment
with details
🔒 Requestor's or reviewer's signature is needed
filter[requestor] | string Filters requests by requestor - source of the operation. |
filter[reviewer] | string Filters requests by reviewer - account assigned to review requests. |
filter[state] | integer [ 1 .. 5 ] Filters requests by their state.
|
filter[pending_tasks] | integer Filters requests by existing tasks in pending tasks bit mask. Returns requests if all bits are set. |
filter[pending_tasks_not_set] | integer Filters requests by existing tasks in pending tasks bit mask. Returns requests if none of bits is set. |
filter[pending_tasks_any_of] | integer Filters requests by existing tasks in pending tasks bit mask. Returns requests if at least one bit is set. |
filter[request_details.destination] | string Filters requests by deferred payment destination account |
include | string Value: "request_details" Relationships that may be used for the included parameter. |
page[number] | integer >= 0 Page number to return. |
page[limit] | integer [ 1 .. 100 ] Default: 15 Numbers of items per page to return. |
page[order] | string Default: "asc" Enum: "asc" "desc" Order of records on the page. If sortingParam is not specified, order of records is by default sorted by ID. |
requests exist
bad input parameter
either an invalid signature has been provided or a signer has not been authorized to access specified resources
requests do not exist
TokenD Developer Environment
{- "deferredPayment": [
- {
- "id": "12345",
- "type": "requests",
- "relationships": {
- "requestor": {
- "data": {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts"
}
}, - "reviewer": {
- "data": {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts"
}
}, - "request_details": {
- "data": {
- "id": "5",
- "type": "request-details-asset-create"
}
}
}, - "attributes": {
- "reject_reason": "source account underfunded",
- "hash": "13935d561f9ec54341243e6afaf0c8bf936928b07f6600204ba8ca550757d0a6",
- "all_tasks": 12,
- "pending_tasks": 2,
- "created_at": "2012-11-01T22:08:41+00:00",
- "updated_at": "2012-11-01T22:08:41+00:00",
- "state": "pending",
- "state_i": 0,
- "reference": "719111a51cfc5ad214e4e90ce6610f10e1cba165fd1bc9db73a031352b3bb61c",
- "external_details": { },
- "xdr_type": {
- "value": 1,
- "name": "General"
}
}
}
], - "included": [
- {
- "id": "123",
- "type": "request-details-create-deferred-payment",
- "relationships": {
- "source_balance": {
- "id": "BDLXKLLVS6UIQEDYCZKIC5222GGQLCOTHM4BWXVCBDQMJTUWUFUATV2Q",
- "type": "balances"
}, - "destination_account": {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts"
}
}, - "attributes": {
- "amount": "123.123456",
- "creator_details": { }
}
}
], - "links": {
- "next": "/v3/create_deferred_payment_requests?include=details&page[number]=2&page[limit]=15",
- "self": "/v3/create_deferred_payment_requests?include=details&page[number]=1&page[limit]=15"
}
}
Allows getting DeferredPayment
with corresponding details.
🔒 Admin, deferredPayment source, or deferredPayment destination signature is required
id required | integer <int64> Example: 10 Unique identifier of a deferredPayment |
filter[destination] | string Filters deferred_payments by a specified destination's account address. |
filter[source_balance] | string Filters deferred_payments by a specified source's balance address. |
deferredPayment exists
bad input parameter
either an invalid signature has been provided or a signer has not been authorized to access specified resources
deferredPayment does not exist
TokenD Developer Environment
{- "data": {
- "id": "5",
- "type": "deferred-payments",
- "attributes": {
- "state": "pending",
- "state_i": 0,
- "amount": "123.123456",
- "details": { }
}, - "relationships": {
- "source": {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts"
}, - "destination": {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts"
}, - "source_balance": {
- "id": "BDLXKLLVS6UIQEDYCZKIC5222GGQLCOTHM4BWXVCBDQMJTUWUFUATV2Q",
- "type": "balances"
}, - "asset": {
- "id": "USD",
- "type": "assets"
}
}
}, - "included": [ ]
}
Allows getting a filtered list of DeferredPayments
with corresponding details.
🔒 Depending on the case, different signatures are required:
if no filters are applied, admin signature is required.
if filter by source is applied, signature of source is required
if filter by destination is applied, signature of destination is required
filter[destination] | string Filters deferredPayments by a specified destination's account address. |
filter[source_balance] | string Filters deferredPayments by a specified source's balance address. |
filter[source] | string Filters deferredPayments by a specified source's account address. |
filter[asset] | string Filters deferredPayments by a specified asset code |
page[cursor] | integer >= 0 Cursor point to the end of the previous page |
page[limit] | integer [ 1 .. 100 ] Default: 15 Numbers of items per page to return. |
page[order] | string Default: "asc" Enum: "asc" "desc" Order of records on the page. If sortingParam is not specified, order of records is by default sorted by ID. |
deferredPayments exist
bad input parameter
either an invalid signature has been provided or a signer has not been authorized to access specified resources
TokenD Developer Environment
{- "data": [
- {
- "id": "5",
- "type": "deferred-payments",
- "attributes": {
- "state": "pending",
- "state_i": 0,
- "amount": "123.123456",
- "details": { }
}, - "relationships": {
- "source": {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts"
}, - "destination": {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts"
}, - "source_balance": {
- "id": "BDLXKLLVS6UIQEDYCZKIC5222GGQLCOTHM4BWXVCBDQMJTUWUFUATV2Q",
- "type": "balances"
}, - "asset": {
- "id": "USD",
- "type": "assets"
}
}
}
], - "included": [ ],
- "links": {
- "next": "/v3/deferred_payments?page[cursor]=2&page[limit]=15",
- "self": "/v3/deferred_payments?page[cursor]=1&page[limit]=15"
}
}
Allows getting Signers
of the account with corresponding details.
id required | string Unique identifier of an account |
include | string Enum: "role" "role.rules" Example: include=role,role.rules For signers, following relationships can be included: |
account exists
bad input parameter
such an account does not exist
TokenD Developer Environment
{- "data": [
- {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "signers",
- "attributes": {
- "weight": 0,
- "identity": 0,
- "details": { }
}, - "relationships": {
- "role": {
- "data": {
- "id": "4581",
- "type": "signer-roles"
}
}, - "account": {
- "data": {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts"
}
}
}
}
], - "included": [
- {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts",
- "attributes": {
- "kyc_recovery_status": {
- "value": 1,
- "name": "General"
}
}, - "relationships": {
- "signers": {
- "data": [
- {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "signers"
}
]
}, - "referrer": {
- "data": {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts"
}
}, - "balances": {
- "data": [
- {
- "id": "BDLXKLLVS6UIQEDYCZKIC5222GGQLCOTHM4BWXVCBDQMJTUWUFUATV2Q",
- "type": "balances"
}
]
}, - "limits": {
- "data": [
- {
- "id": "1",
- "type": "limits"
}
]
}, - "external_system_ids": {
- "data": [
- {
- "id": "1",
- "type": "external-system-ids"
}
]
}, - "role": {
- "data": {
- "id": "4581",
- "type": "account-roles"
}
}, - "fees": {
- "data": [
- {
- "id": "a343e3cbcc72928a571778f77bf2554eb5b72c79ce28bbc9d3325c60c21e5241",
- "type": "fees"
}
]
}, - "limits_with_stats": {
- "data": [
- {
- "id": "1",
- "type": "limits-with-stats"
}
]
}, - "kyc_data": {
- "data": {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "account-kyc"
}
}
}
}
], - "links": {
- "next": "/v3/accounts/GA67BUDBYDGCVCL6EKPDAREG5IPLHSROF6QJX7MLS2BQJZJDO6FCZAKE/signers?include=role,role.rules&page[number]=2&page[limit]=15",
- "self": "/v3/accounts/GA67BUDBYDGCVCL6EKPDAREG5IPLHSROF6QJX7MLS2BQJZJDO6FCZAKE/signers?include=role,role.rules&page[number]=1&page[limit]=15"
}
}
Allows getting Signer Role
with corresponding details.
id required | string Unique identifier of the signer role |
include | string Value: "rules" Relationships that may be used for the included parameter. |
signer role exists
bad input parameter
signer role does not exist
TokenD Developer Environment
{- "data": {
- "id": "4581",
- "type": "signer-roles",
- "relationships": {
- "rules": {
- "data": [
- {
- "id": "7582",
- "type": "signer-rules"
}
]
}, - "owner": {
- "data": {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts"
}
}
}, - "attributes": {
- "details": { }
}
}, - "included": [
- {
- "id": "7582",
- "type": "signer-rules",
- "relationships": {
- "owner": {
- "data": {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts"
}
}
}, - "attributes": {
- "action": {
- "value": 1,
- "name": "General"
}, - "forbids": false,
- "details": { },
- "resource": { },
- "is_default": true
}
}
]
}
Allows getting a list of Signer Role
with corresponding details.
include | string Value: "rules" Relationships that may be used for the included parameter. |
page[number] | integer >= 0 Page number to return. |
page[limit] | integer [ 1 .. 100 ] Default: 15 Numbers of items per page to return. |
page[order] | string Default: "asc" Enum: "asc" "desc" Order of records on the page. If sortingParam is not specified, order of records is by default sorted by ID. |
succesfully retrieved page
bad input parameter
TokenD Developer Environment
{- "data": [
- {
- "id": "4581",
- "type": "signer-roles",
- "relationships": {
- "rules": {
- "data": [
- {
- "id": "7582",
- "type": "signer-rules"
}
]
}, - "owner": {
- "data": {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts"
}
}
}, - "attributes": {
- "details": { }
}
}
], - "included": [
- {
- "id": "7582",
- "type": "signer-rules",
- "relationships": {
- "owner": {
- "data": {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts"
}
}
}, - "attributes": {
- "action": {
- "value": 1,
- "name": "General"
}, - "forbids": false,
- "details": { },
- "resource": { },
- "is_default": true
}
}
], - "links": {
- "next": "/v3/signer_roles?include=rules&page[number]=2&page[limit]=15",
- "self": "/v3/signer_roles?include=rules&page[number]=1&page[limit]=15"
}
}
Allows getting Signer Rule
with corresponding details.
id required | string Unique identifier of the signer rule |
signer rule exists
bad input parameter
signer rule does not exist
TokenD Developer Environment
{- "data": {
- "id": "7582",
- "type": "signer-rules",
- "relationships": {
- "owner": {
- "data": {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts"
}
}
}, - "attributes": {
- "action": {
- "value": 1,
- "name": "General"
}, - "forbids": false,
- "details": { },
- "resource": { },
- "is_default": true
}
}
}
Allows getting a list of Signer Rule
with corresponding details.
page[number] | integer >= 0 Page number to return. |
page[limit] | integer [ 1 .. 100 ] Default: 15 Numbers of items per page to return. |
page[order] | string Default: "asc" Enum: "asc" "desc" Order of records on the page. If sortingParam is not specified, order of records is by default sorted by ID. |
succesfully retrieved page
bad input parameter
TokenD Developer Environment
{- "data": [
- {
- "id": "7582",
- "type": "signer-rules",
- "relationships": {
- "owner": {
- "data": {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts"
}
}
}, - "attributes": {
- "action": {
- "value": 1,
- "name": "General"
}, - "forbids": false,
- "details": { },
- "resource": { },
- "is_default": true
}
}
], - "links": {
- "next": "/v3/signer_rules?page[number]=2&page[limit]=15",
- "self": "/v3/signer_rules?page[number]=1&page[limit]=15"
}
}
Allows getting Account Role
with corresponding details.
id required | string Unique identifier of an account role |
include | string Value: "rules" Relationships that may be used for the included parameter. |
account role exists
bad input parameter
account role does not exist
TokenD Developer Environment
{- "data": {
- "id": "4581",
- "type": "account-roles",
- "relationships": {
- "rules": {
- "data": [
- {
- "id": "7582",
- "type": "account-rules"
}
]
}
}, - "attributes": {
- "details": { }
}
}, - "included": [
- {
- "id": "7582",
- "type": "account-rules",
- "attributes": {
- "action": {
- "value": 1,
- "name": "General"
}, - "forbids": false,
- "details": { },
- "resource": { }
}
}
]
}
Allows getting a list of Account Role
with corresponding details.
include | string Value: "rules" Relationships that may be used for the included parameter. |
page[number] | integer >= 0 Page number to return. |
page[limit] | integer [ 1 .. 100 ] Default: 15 Numbers of items per page to return. |
page[order] | string Default: "asc" Enum: "asc" "desc" Order of records on the page. If sortingParam is not specified, order of records is by default sorted by ID. |
succesfully retrieved page
bad input parameter
TokenD Developer Environment
{- "data": [
- {
- "id": "4581",
- "type": "account-roles",
- "relationships": {
- "rules": {
- "data": [
- {
- "id": "7582",
- "type": "account-rules"
}
]
}
}, - "attributes": {
- "details": { }
}
}
], - "included": [
- {
- "id": "7582",
- "type": "account-rules",
- "attributes": {
- "action": {
- "value": 1,
- "name": "General"
}, - "forbids": false,
- "details": { },
- "resource": { }
}
}
]
}
Allows getting Account Rule
with corresponding details.
id required | string Unique identifier of an account rule |
account rule exists
bad input parameter
account rule does not exist
TokenD Developer Environment
{- "data": {
- "id": "7582",
- "type": "account-rules",
- "attributes": {
- "action": {
- "value": 1,
- "name": "General"
}, - "forbids": false,
- "details": { },
- "resource": { }
}
}
}
Allows getting a list of Account Rule
with corresponding details.
page[number] | integer >= 0 Page number to return. |
page[limit] | integer [ 1 .. 100 ] Default: 15 Numbers of items per page to return. |
page[order] | string Default: "asc" Enum: "asc" "desc" Order of records on the page. If sortingParam is not specified, order of records is by default sorted by ID. |
succesfully retrieved page
bad input parameter
TokenD Developer Environment
{- "data": [
- {
- "id": "7582",
- "type": "account-rules",
- "attributes": {
- "action": {
- "value": 1,
- "name": "General"
}, - "forbids": false,
- "details": { },
- "resource": { }
}
}
], - "links": {
- "next": "/v3/account_rules?page[number]=2&page[limit]=15",
- "self": "/v3/account_rules?page[number]=1&page[limit]=15"
}
}
Allows to get ChangeRole
by ID
🔒 Requestor's or reviewer's signature is needed
filter[requestor] | string Filters requests by the requestor - source of the operation. |
filter[reviewer] | string Filters requests by the reviewer - account assigned to review requests. |
filter[state] | integer [ 1 .. 5 ] Filters requests by their state.
|
filter[pending_tasks] | integer Filters requests by existing tasks in pending tasks bit mask. Returns requests if all bits are set. |
filter[pending_tasks_not_set] | integer Filters requests by existing tasks in pending tasks bit mask. Returns requests if none of bits is set. |
filter[pending_tasks_any_of] | integer Filters requests by existing tasks in pending tasks bit mask. Returns requests if at least one bit is set. |
filter[request_details.destination_account] | string Filters change role requests by destination account. |
filter[request_details.account_role_to_set] | string Filters change role requests by account_role_to_set. |
include | string Enum: "request_details" "request_details.account" Relationships that may be used for the included parameter. |
requests exist
bad input parameter
either an invalid signature has been provided or a signer has not been authorized to access specified resources
request does not exist
TokenD Developer Environment
{- "data": {
- "id": "12345",
- "type": "requests",
- "relationships": {
- "requestor": {
- "data": {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts"
}
}, - "reviewer": {
- "data": {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts"
}
}, - "request_details": {
- "data": {
- "id": "5",
- "type": "request-details-asset-create"
}
}
}, - "attributes": {
- "reject_reason": "source account underfunded",
- "hash": "13935d561f9ec54341243e6afaf0c8bf936928b07f6600204ba8ca550757d0a6",
- "all_tasks": 12,
- "pending_tasks": 2,
- "created_at": "2012-11-01T22:08:41+00:00",
- "updated_at": "2012-11-01T22:08:41+00:00",
- "state": "pending",
- "state_i": 0,
- "reference": "719111a51cfc5ad214e4e90ce6610f10e1cba165fd1bc9db73a031352b3bb61c",
- "external_details": { },
- "xdr_type": {
- "value": 1,
- "name": "General"
}
}
}, - "included": [
- {
- "id": "5",
- "type": "request-details-change-role",
- "relationships": {
- "account_to_update_role": {
- "data": {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts"
}
}
}, - "attributes": {
- "account_role_to_set": 1,
- "sequence_number": 10,
- "creator_details": { }
}
}
]
}
Allows getting a filtered list of ChangeRoleRequest
with details
🔒 Requestor's or reviewer's signature is needed
filter[requestor] | string Filters requests by requestor - source of the operation. |
filter[reviewer] | string Filters requests by reviewer - account assigned to review requests. |
filter[state] | integer [ 1 .. 5 ] Filters requests by their state.
|
filter[pending_tasks] | integer Filters requests by existing tasks in pending tasks bit mask. Returns requests if all bits are set. |
filter[pending_tasks_not_set] | integer Filters requests by existing tasks in pending tasks bit mask. Returns requests if none of bits is set. |
filter[pending_tasks_any_of] | integer Filters requests by existing tasks pending tasks bit mask. Returns requests if at least one bit is set. |
filter[request_details.destination_account] | string Filters change_role requests by account to change role. |
filter[request_details.account_role_to_set] | string Filters change_role requests by account_role_to_set. |
include | string Enum: "request_details" "request_details.account" Relationships that may be used for the included parameter. |
page[number] | integer >= 0 Page number to return. |
page[limit] | integer [ 1 .. 100 ] Default: 15 Numbers of items per page to return. |
page[order] | string Default: "asc" Enum: "asc" "desc" Order of records on the page. If sortingParam is not specified, order of records is by default sorted by ID. |
requests exist
bad input parameter
either an invalid signature has been provided or a signer has not been authorized to access specified resources
requests do not exist
TokenD Developer Environment
{- "data": [
- {
- "id": "12345",
- "type": "requests",
- "relationships": {
- "requestor": {
- "data": {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts"
}
}, - "reviewer": {
- "data": {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts"
}
}, - "request_details": {
- "data": {
- "id": "5",
- "type": "request-details-asset-create"
}
}
}, - "attributes": {
- "reject_reason": "source account underfunded",
- "hash": "13935d561f9ec54341243e6afaf0c8bf936928b07f6600204ba8ca550757d0a6",
- "all_tasks": 12,
- "pending_tasks": 2,
- "created_at": "2012-11-01T22:08:41+00:00",
- "updated_at": "2012-11-01T22:08:41+00:00",
- "state": "pending",
- "state_i": 0,
- "reference": "719111a51cfc5ad214e4e90ce6610f10e1cba165fd1bc9db73a031352b3bb61c",
- "external_details": { },
- "xdr_type": {
- "value": 1,
- "name": "General"
}
}
}
], - "included": [
- {
- "id": "5",
- "type": "request-details-change-role",
- "relationships": {
- "account_to_update_role": {
- "data": {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts"
}
}
}, - "attributes": {
- "account_role_to_set": 1,
- "sequence_number": 10,
- "creator_details": { }
}
}
], - "links": {
- "next": "/v3/change_role_requests?include=details&page[number]=2&page[limit]=15",
- "self": "/v3/change_role_requests?include=details&page[number]=1&page[limit]=15"
}
}
Allows getting CreateAmlAlert
by ID
🔒 Requestor's or reviewer's signature is needed
filter[requestor] | string Filters requests by requestor - source of the operation. |
filter[reviewer] | string Filters requests by reviewer - account assigned to review requests. |
filter[state] | integer [ 1 .. 5 ] Filters requests by their state.
|
filter[pending_tasks] | integer Filters requests by existing tasks in pending tasks bit mask. Returns requests if all bits are set. |
filter[pending_tasks_not_set] | integer Filters requests by existing tasks in pending tasks bit mask. Returns requests if none of bits is set. |
filter[pending_tasks_any_of] | integer Filters requests by existing tasks in pending tasks bit mask. Returns requests if at least one bit is set. |
filter[request_details.balance] | string Filters create aml alert requests by balance. |
include | string Enum: "request_details" "request_details.balance" Relationships that may be used for the included parameter. |
requests exist
bad input parameter
either an invalid signature has been provided or a signer has not been authorized to access specified resources
request does not exist
TokenD Developer Environment
{- "data": {
- "id": "12345",
- "type": "requests",
- "relationships": {
- "requestor": {
- "data": {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts"
}
}, - "reviewer": {
- "data": {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts"
}
}, - "request_details": {
- "data": {
- "id": "5",
- "type": "request-details-asset-create"
}
}
}, - "attributes": {
- "reject_reason": "source account underfunded",
- "hash": "13935d561f9ec54341243e6afaf0c8bf936928b07f6600204ba8ca550757d0a6",
- "all_tasks": 12,
- "pending_tasks": 2,
- "created_at": "2012-11-01T22:08:41+00:00",
- "updated_at": "2012-11-01T22:08:41+00:00",
- "state": "pending",
- "state_i": 0,
- "reference": "719111a51cfc5ad214e4e90ce6610f10e1cba165fd1bc9db73a031352b3bb61c",
- "external_details": { },
- "xdr_type": {
- "value": 1,
- "name": "General"
}
}
}, - "included": [
- {
- "id": "5",
- "type": "request-details-aml-alert",
- "relationships": {
- "balance": {
- "data": {
- "id": "BDLXKLLVS6UIQEDYCZKIC5222GGQLCOTHM4BWXVCBDQMJTUWUFUATV2Q",
- "type": "balances"
}
}
}, - "attributes": {
- "amount": "1000.123456",
- "creator_details": { }
}
}
]
}
Allows getting a filtered list of CreateAmlAlertRequest
with details
🔒 Requestor's or reviewer's signature is needed
filter[requestor] | string Filters requests by requestor - source of the operation. |
filter[reviewer] | string Filters requests by reviewer - account assigned to review requests. |
filter[state] | integer [ 1 .. 5 ] Filters requests by their state.
|
filter[pending_tasks] | integer Filters requests by existing tasks in pending tasks bit mask. Returns requests if all bits are set. |
filter[pending_tasks_not_set] | integer Filters requests by existing tasks in pending tasks bit mask. Returns requests if none of bits is set. |
filter[pending_tasks_any_of] | integer Filters requests by existing tasks in pending tasks bit mask. Returns requests if at least one bit is set. |
filter[request_details.balance] | string Filters create aml alert requests by balance. |
include | string Enum: "request_details" "request_details.balance" Relationships that may be used for the included parameter. |
page[number] | integer >= 0 Page number to return. |
page[limit] | integer [ 1 .. 100 ] Default: 15 Numbers of items per page to return. |
page[order] | string Default: "asc" Enum: "asc" "desc" Order of records on the page. If sortingParam is not specified, order of records is by default sorted by ID. |
requests exist
bad input parameter
either an invalid signature has been provided or a signer has not been authorized to access specified resources
requests do not exist
TokenD Developer Environment
{- "data": [
- {
- "id": "12345",
- "type": "requests",
- "relationships": {
- "requestor": {
- "data": {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts"
}
}, - "reviewer": {
- "data": {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts"
}
}, - "request_details": {
- "data": {
- "id": "5",
- "type": "request-details-asset-create"
}
}
}, - "attributes": {
- "reject_reason": "source account underfunded",
- "hash": "13935d561f9ec54341243e6afaf0c8bf936928b07f6600204ba8ca550757d0a6",
- "all_tasks": 12,
- "pending_tasks": 2,
- "created_at": "2012-11-01T22:08:41+00:00",
- "updated_at": "2012-11-01T22:08:41+00:00",
- "state": "pending",
- "state_i": 0,
- "reference": "719111a51cfc5ad214e4e90ce6610f10e1cba165fd1bc9db73a031352b3bb61c",
- "external_details": { },
- "xdr_type": {
- "value": 1,
- "name": "General"
}
}
}
], - "included": [
- {
- "id": "5",
- "type": "request-details-aml-alert",
- "relationships": {
- "balance": {
- "data": {
- "id": "BDLXKLLVS6UIQEDYCZKIC5222GGQLCOTHM4BWXVCBDQMJTUWUFUATV2Q",
- "type": "balances"
}
}
}, - "attributes": {
- "amount": "1000.123456",
- "creator_details": { }
}
}
], - "links": {
- "next": "/v3/create_aml_alert_requests?include=details&page[number]=2&page[limit]=15",
- "self": "/v3/create_aml_alert_requests?include=details&page[number]=1&page[limit]=15"
}
}
Allows getting a filtered list of Limits
with corresponding details.
filter[asset] | string Filters limits by asset. |
filter[stats_op_type] | integer Filters limits by statsOpType. |
filter[account] | string Filters limits by account address. |
filter[account_role] | integer Filters limits by account role. |
include | string Value: "asset" Relationships that may be used for the included parameter. |
page[number] | integer >= 0 Page number to return. |
page[limit] | integer [ 1 .. 100 ] Default: 15 Numbers of items per page to return. |
page[order] | string Default: "asc" Enum: "asc" "desc" Order of records on the page. If sortingParam is not specified, order of records is by default sorted by ID. |
limits exist
bad input parameter
limits do not exist
TokenD Developer Environment
{- "data": [
- {
- "id": "1",
- "type": "limits",
- "relationships": {
- "account": {
- "data": {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts"
}
}, - "asset": {
- "data": {
- "id": "USD",
- "type": "assets"
}
}, - "account_role": {
- "data": {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts"
}
}
}, - "attributes": {
- "stats_op_type": 1,
- "is_convert_needed": true,
- "daily_out": "100.000000",
- "weekly_out": "700.000000",
- "monthly_out": "3000.000000",
- "annual_out": "36500.000000"
}
}
], - "included": [
- {
- "id": "USD",
- "type": "assets",
- "relationships": {
- "owner": {
- "data": {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts"
}
}
}, - "attributes": {
- "pre_issuance_asset_signer": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "max_issuance_amount": "1000.000001",
- "available_for_issuance": "20.000000",
- "issued": "10.000000",
- "pending_issuance": "123.000123",
- "policies": {
- "value": 4,
- "flags": [
- {
- "value": 1,
- "name": "General"
}
]
}, - "trailing_digits": 2,
- "type": 2,
- "state": {
- "value": 1,
- "name": "General"
}, - "details": { }
}
}
], - "links": {
- "next": "/v3/limits?include=asset&page[number]=2&page[limit]=15",
- "self": "/v3/limits?include=asset&page[number]=1&page[limit]=15"
}
}
Allows getting UpdateLimits
by ID
🔒 Requestor's or reviewer's signature is needed
filter[requestor] | string Filters requests by requestor - source of the operation. |
filter[reviewer] | string Filters requests by reviewer - account assigned to review requests. |
filter[state] | integer [ 1 .. 5 ] Filters requests by their state.
|
filter[pending_tasks] | integer Filters requests by existing tasks in pending tasks bit mask. Returns requests if all bits are set. |
filter[pending_tasks_not_set] | integer Filters requests by existing tasks in pending tasks bit mask. Returns requests if none of bits is set. |
filter[pending_tasks_any_of] | integer Filters requests by existing tasks in pending tasks bit mask. Returns requests if at least one bit is set. |
include | string Value: "request_details" Relationships that may be used for the included parameter. |
requests exist
bad input parameter
request does not exist
TokenD Developer Environment
{- "data": {
- "id": "12345",
- "type": "requests",
- "relationships": {
- "requestor": {
- "data": {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts"
}
}, - "reviewer": {
- "data": {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts"
}
}, - "request_details": {
- "data": {
- "id": "5",
- "type": "request-details-asset-create"
}
}
}, - "attributes": {
- "reject_reason": "source account underfunded",
- "hash": "13935d561f9ec54341243e6afaf0c8bf936928b07f6600204ba8ca550757d0a6",
- "all_tasks": 12,
- "pending_tasks": 2,
- "created_at": "2012-11-01T22:08:41+00:00",
- "updated_at": "2012-11-01T22:08:41+00:00",
- "state": "pending",
- "state_i": 0,
- "reference": "719111a51cfc5ad214e4e90ce6610f10e1cba165fd1bc9db73a031352b3bb61c",
- "external_details": { },
- "xdr_type": {
- "value": 1,
- "name": "General"
}
}
}, - "included": [
- {
- "id": "5",
- "type": "request-details-limits-update",
- "attributes": {
- "creator_details": { }
}
}
]
}
Allows getting a filtered list of UpdateLimitsRequest
with details
🔒 Requestor's or reviewer's signature is needed
filter[requestor] | string Filters requests by requestor - source of the operation. |
filter[reviewer] | string Filters requests by reviewer - account assigned to review request. |
filter[state] | integer [ 1 .. 5 ] Filters requests by their state.
|
filter[pending_tasks] | integer Filters requests by existing tasks in pending tasks bit mask. Returns requests if all bits are set. |
filter[pending_tasks_not_set] | integer Filters requests by existing tasks in pending tasks bit mask. Returns requests if none of bits is set. |
filter[pending_tasks_any_of] | integer Filters requests by existing tasks in pending tasks bit mask. Returns requests if at least one bit is set. |
include | string Value: "request_details" Relationships that may be used for the included parameter. |
page[number] | integer >= 0 Page number to return. |
page[limit] | integer [ 1 .. 100 ] Default: 15 Numbers of items per page to return. |
page[order] | string Default: "asc" Enum: "asc" "desc" Order of records on the page. If sortingParam is not specified, order of records is by default sorted by ID. |
requests exist
bad input parameter
either an invalid signature has been provided or a signer has not been authorized to access specified resources
requests do not exist
TokenD Developer Environment
{- "data": [
- {
- "id": "12345",
- "type": "requests",
- "relationships": {
- "requestor": {
- "data": {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts"
}
}, - "reviewer": {
- "data": {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts"
}
}, - "request_details": {
- "data": {
- "id": "5",
- "type": "request-details-asset-create"
}
}
}, - "attributes": {
- "reject_reason": "source account underfunded",
- "hash": "13935d561f9ec54341243e6afaf0c8bf936928b07f6600204ba8ca550757d0a6",
- "all_tasks": 12,
- "pending_tasks": 2,
- "created_at": "2012-11-01T22:08:41+00:00",
- "updated_at": "2012-11-01T22:08:41+00:00",
- "state": "pending",
- "state_i": 0,
- "reference": "719111a51cfc5ad214e4e90ce6610f10e1cba165fd1bc9db73a031352b3bb61c",
- "external_details": { },
- "xdr_type": {
- "value": 1,
- "name": "General"
}
}
}
], - "included": [
- {
- "id": "5",
- "type": "request-details-limits-update",
- "attributes": {
- "creator_details": { }
}
}
], - "links": {
- "next": "/v3/update_limits_requests?include=details&page[number]=2&page[limit]=15",
- "self": "/v3/update_limits_requests?include=details&page[number]=1&page[limit]=15"
}
}
Allows to get KYCRecovery
by ID
🔒 Requestor's or reviewer's signature is needed
filter[requestor] | string Filters requests by the requestor - source of the operation. |
filter[reviewer] | string Filters requests by the reviewer - account assigned to review requests. |
filter[state] | integer [ 1 .. 5 ] Filters requests by their state.
|
filter[pending_tasks] | integer Filters requests by existing tasks in pending tasks bit mask. Returns requests if all bits are set. |
filter[pending_tasks_not_set] | integer Filters requests by existing tasks in pending tasks bit mask. Returns requests if none of bits is set. |
filter[pending_tasks_any_of] | integer Filters requests by existing tasks in pending tasks bit mask. Returns requests if at least one bit is set. |
filter[request_details.target_account] | string Filters change role requests by destination account. |
include | string Enum: "request_details" "request_details.target_account" Relationships that may be used for the included parameter. |
requests exist
bad input parameter
either an invalid signature has been provided or a signer has not been authorized to access specified resources
request does not exist
TokenD Developer Environment
{- "data": {
- "id": "12345",
- "type": "requests",
- "relationships": {
- "requestor": {
- "data": {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts"
}
}, - "reviewer": {
- "data": {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts"
}
}, - "request_details": {
- "data": {
- "id": "5",
- "type": "request-details-asset-create"
}
}
}, - "attributes": {
- "reject_reason": "source account underfunded",
- "hash": "13935d561f9ec54341243e6afaf0c8bf936928b07f6600204ba8ca550757d0a6",
- "all_tasks": 12,
- "pending_tasks": 2,
- "created_at": "2012-11-01T22:08:41+00:00",
- "updated_at": "2012-11-01T22:08:41+00:00",
- "state": "pending",
- "state_i": 0,
- "reference": "719111a51cfc5ad214e4e90ce6610f10e1cba165fd1bc9db73a031352b3bb61c",
- "external_details": { },
- "xdr_type": {
- "value": 1,
- "name": "General"
}
}
}, - "included": [
- {
- "id": "5",
- "type": "request-details-kyc-recovery",
- "relationships": {
- "target_account": {
- "data": {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts"
}
}
}, - "attributes": {
- "sequence_number": 4,
- "signers_data": [
- {
- "identity": 0,
- "role_id": 1,
- "weight": 12,
- "details": { }
}
], - "creator_details": { }
}
}
]
}
Allows getting a filtered list of KYCRecoveryRequest
with details
🔒 Requestor's or reviewer's signature is needed
filter[requestor] | string Filters requests by requestor - source of the operation. |
filter[reviewer] | string Filters requests by reviewer - account assigned to review requests. |
filter[state] | integer [ 1 .. 5 ] Filters requests by their state.
|
filter[pending_tasks] | integer Filters requests by existing tasks in pending tasks bit mask. Returns requests if all bits are set. |
filter[pending_tasks_not_set] | integer Filters requests by existing tasks in pending tasks bit mask. Returns requests if none of bits is set. |
filter[pending_tasks_any_of] | integer Filters requests by existing tasks pending tasks bit mask. Returns requests if at least one bit is set. |
filter[request_details.target_account] | string Filters kyc recovery requests by target account |
include | string Enum: "request_details" "request_details.target_account" Relationships that may be used for the included parameter. |
page[number] | integer >= 0 Page number to return. |
page[limit] | integer [ 1 .. 100 ] Default: 15 Numbers of items per page to return. |
page[order] | string Default: "asc" Enum: "asc" "desc" Order of records on the page. If sortingParam is not specified, order of records is by default sorted by ID. |
requests exist
bad input parameter
either an invalid signature has been provided or a signer has not been authorized to access specified resources
requests do not exist
TokenD Developer Environment
{- "data": [
- {
- "id": "12345",
- "type": "requests",
- "relationships": {
- "requestor": {
- "data": {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts"
}
}, - "reviewer": {
- "data": {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts"
}
}, - "request_details": {
- "data": {
- "id": "5",
- "type": "request-details-asset-create"
}
}
}, - "attributes": {
- "reject_reason": "source account underfunded",
- "hash": "13935d561f9ec54341243e6afaf0c8bf936928b07f6600204ba8ca550757d0a6",
- "all_tasks": 12,
- "pending_tasks": 2,
- "created_at": "2012-11-01T22:08:41+00:00",
- "updated_at": "2012-11-01T22:08:41+00:00",
- "state": "pending",
- "state_i": 0,
- "reference": "719111a51cfc5ad214e4e90ce6610f10e1cba165fd1bc9db73a031352b3bb61c",
- "external_details": { },
- "xdr_type": {
- "value": 1,
- "name": "General"
}
}
}
], - "included": [
- {
- "id": "5",
- "type": "request-details-kyc-recovery",
- "relationships": {
- "target_account": {
- "data": {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts"
}
}
}, - "attributes": {
- "sequence_number": 4,
- "signers_data": [
- {
- "identity": 0,
- "role_id": 1,
- "weight": 12,
- "details": { }
}
], - "creator_details": { }
}
}
], - "links": {
- "next": "/v3/kyc_recovery_requests?include=request_details&page[number]=2&page[limit]=15",
- "self": "/v3/kyc_recovery_requests?include=request_details&page[number]=1&page[limit]=15"
}
}
Allows getting AssetPair
with corresponding details.
id required | string <BASE:QUOTE> Example: BTC:ETH Unique identifier of an asset pair that consists of two asset codes |
include | string Enum: "base_asset" "quote_asset" Example: include=base_asset Relationships that may be used for the |
asset pair exists
bad input parameter
asset pair does not exist
TokenD Developer Environment
{- "data": {
- "id": "BTC:ETH",
- "type": "asset-pairs",
- "relationships": {
- "base_asset": {
- "data": {
- "id": "USD",
- "type": "assets"
}
}, - "quote_asset": {
- "data": {
- "id": "USD",
- "type": "assets"
}
}
}, - "attributes": {
- "price": "3.000000",
- "policies": {
- "value": 4,
- "flags": [
- {
- "value": 1,
- "name": "General"
}
]
}, - "max_price_step": "1.000000",
- "physical_price_correction": "2.000000"
}
}, - "included": [
- {
- "id": "USD",
- "type": "assets",
- "relationships": {
- "owner": {
- "data": {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts"
}
}
}, - "attributes": {
- "pre_issuance_asset_signer": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "max_issuance_amount": "1000.000001",
- "available_for_issuance": "20.000000",
- "issued": "10.000000",
- "pending_issuance": "123.000123",
- "policies": {
- "value": 4,
- "flags": [
- {
- "value": 1,
- "name": "General"
}
]
}, - "trailing_digits": 2,
- "type": 2,
- "state": {
- "value": 1,
- "name": "General"
}, - "details": { }
}
}
]
}
Allows getting a filtered list of AssetPair
with corresponding details.
filter[policy] | integer <int32> Example: filter[policy]=2 Filters asset pairs by a specified bit mask. Returns the page of asset pairs where at least one bit intersects. |
filter[base_asset] | string <valid AssetCode> Example: filter[base_asset]=BTC Filters asset pairs by a specified base asset of the pair. |
filter[quote_asset] | string <valid AssetCode> Example: filter[quote_asset]=ETH Filters asset pairs by a specified quote asset of the pair. |
filter[asset] | string <valid AssetCode> Example: filter[asset]=ETH Filters asset pairs by a specified asset of the pair (no matter whether it is a base or quote asset) |
include | string Enum: "base_asset" "quote_asset" Example: include=base_asset,quote_asset Relationships that may be used for the |
page[number] | integer >= 0 Page number to return. |
page[limit] | integer [ 1 .. 100 ] Default: 15 Numbers of items per page to return. |
page[order] | string Default: "asc" Enum: "asc" "desc" Order of records on the page. If sortingParam is not specified, order of records is by default sorted by ID. |
asset pairs that satisfy specified filters
bad input parameter
asset pair does not exist
TokenD Developer Environment
{- "data": [
- {
- "id": "BTC:ETH",
- "type": "asset-pairs",
- "relationships": {
- "base_asset": {
- "data": {
- "id": "USD",
- "type": "assets"
}
}, - "quote_asset": {
- "data": {
- "id": "USD",
- "type": "assets"
}
}
}, - "attributes": {
- "price": "3.000000",
- "policies": {
- "value": 4,
- "flags": [
- {
- "value": 1,
- "name": "General"
}
]
}, - "max_price_step": "1.000000",
- "physical_price_correction": "2.000000"
}
}
], - "included": [
- {
- "id": "USD",
- "type": "assets",
- "relationships": {
- "owner": {
- "data": {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts"
}
}
}, - "attributes": {
- "pre_issuance_asset_signer": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "max_issuance_amount": "1000.000001",
- "available_for_issuance": "20.000000",
- "issued": "10.000000",
- "pending_issuance": "123.000123",
- "policies": {
- "value": 4,
- "flags": [
- {
- "value": 1,
- "name": "General"
}
]
}, - "trailing_digits": 2,
- "type": 2,
- "state": {
- "value": 1,
- "name": "General"
}, - "details": { }
}
}
], - "links": {
- "next": "/v3/assets_pairs?include=base_asset&page[number]=2&page[limit]=15",
- "self": "/v3/assets_pairs?include=base_asset&page[number]=1&page[limit]=15"
}
}
Allows getting Offer
with corresponding details.
🔒 An owner's or admin's signature is needed to get the data from this endpoint.
id required | integer <int64> Example: 10 Unique identifier of an offer |
include | string Enum: "base_asset" "quote_asset" Relationships that may be used for the included parameter. |
offer exists
bad input parameter
either an invalid signature has been provided or a signer has not been authorized to access specified resources
offer does not exist
TokenD Developer Environment
{- "data": {
- "id": "10",
- "type": "offers",
- "attributes": {
- "is_buy": true,
- "order_book_id": "1",
- "created_at": "2012-11-01T22:08:41+00:00",
- "base_amount": "5.000000",
- "quote_amount": "15.000000",
- "price": "3.000000",
- "fee": {
- "fixed": 486000000,
- "calculated_percent": 4000000
}
}, - "relationships": {
- "owner": {
- "data": {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts"
}
}, - "base_asset": {
- "data": {
- "id": "USD",
- "type": "assets"
}
}, - "quote_asset": {
- "data": {
- "id": "USD",
- "type": "assets"
}
}, - "base_balance": {
- "data": {
- "id": "BDLXKLLVS6UIQEDYCZKIC5222GGQLCOTHM4BWXVCBDQMJTUWUFUATV2Q",
- "type": "balances"
}
}, - "quote_balance": {
- "data": {
- "id": "BDLXKLLVS6UIQEDYCZKIC5222GGQLCOTHM4BWXVCBDQMJTUWUFUATV2Q",
- "type": "balances"
}
}
}
}, - "included": [
- {
- "id": "USD",
- "type": "assets",
- "relationships": {
- "owner": {
- "data": {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts"
}
}
}, - "attributes": {
- "pre_issuance_asset_signer": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "max_issuance_amount": "1000.000001",
- "available_for_issuance": "20.000000",
- "issued": "10.000000",
- "pending_issuance": "123.000123",
- "policies": {
- "value": 4,
- "flags": [
- {
- "value": 1,
- "name": "General"
}
]
}, - "trailing_digits": 2,
- "type": 2,
- "state": {
- "value": 1,
- "name": "General"
}, - "details": { }
}
}
]
}
Allows getting a filtered list of Offer
with corresponding details.
🔒 Depending on the case, different signatures are required:
if no filters are applied, admin account's signature is required.
if filters are applied, signature of the account by which the filter was requested is required
filter[base_balance] | string <valid balanceID> Example: filter[base_balance]=BDLXKLLVS6UIQEDYCZKIC5222GGQLCOTHM4BWXVCBDQMJTUWUFUATV2Q Filters offers by specified base balance ID |
filter[quote_balance] | string <valid balanceID> Example: filter[quote_balance]=BPGIKLLVS6UIQEDYCJRFH53GJ7GQLCOTHM4BWXVCBDQMJTUWUDPQTVLO Filters offers by specified quote balance ID |
filter[base_asset] | string <valid assetCode> Example: filter[base_asset]=BTC Filters offers by specified base asset code |
filter[quote_asset] | string <valid assetCode> Example: filter[quote_asset]=ETH Filters offers by specified quote asset code |
filter[owner] | string <valid accountID> Example: filter[owner]=GAULFBQKQTFHHHZEIRMYVCGTY47FKWEW7P2BY2YT45HAEODAIJUJH23T Filters offers by a specified account that created the offer |
filter[order_book] | number <int64> Example: filter[order_book]=2 Filters offers by specified order book ID Defines whether offers are for sale or for trade (0 - secondary market, saleId - for specific sale) |
filter[is_buy] | number <int32> Example: filter[is_buy]=1 Defines whether an offer is on buying or selling the base_asset, or both
|
include | string Enum: "base_asset" "quote_asset" Relationships that may be used for the included parameter. |
page[number] | integer >= 0 Page number to return. |
page[limit] | integer [ 1 .. 100 ] Default: 15 Numbers of items per page to return. |
page[order] | string Default: "asc" Enum: "asc" "desc" Order of records on the page. If sortingParam is not specified, order of records is by default sorted by ID. |
offer exists
bad input parameter
either an invalid signature has been provided or a signer has not been authorized to access specified resources
TokenD Developer Environment
{- "data": [
- {
- "id": "10",
- "type": "offers",
- "attributes": {
- "is_buy": true,
- "order_book_id": "1",
- "created_at": "2012-11-01T22:08:41+00:00",
- "base_amount": "5.000000",
- "quote_amount": "15.000000",
- "price": "3.000000",
- "fee": {
- "fixed": 486000000,
- "calculated_percent": 4000000
}
}, - "relationships": {
- "owner": {
- "data": {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts"
}
}, - "base_asset": {
- "data": {
- "id": "USD",
- "type": "assets"
}
}, - "quote_asset": {
- "data": {
- "id": "USD",
- "type": "assets"
}
}, - "base_balance": {
- "data": {
- "id": "BDLXKLLVS6UIQEDYCZKIC5222GGQLCOTHM4BWXVCBDQMJTUWUFUATV2Q",
- "type": "balances"
}
}, - "quote_balance": {
- "data": {
- "id": "BDLXKLLVS6UIQEDYCZKIC5222GGQLCOTHM4BWXVCBDQMJTUWUFUATV2Q",
- "type": "balances"
}
}
}
}
], - "included": [
- {
- "id": "USD",
- "type": "assets",
- "relationships": {
- "owner": {
- "data": {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts"
}
}
}, - "attributes": {
- "pre_issuance_asset_signer": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "max_issuance_amount": "1000.000001",
- "available_for_issuance": "20.000000",
- "issued": "10.000000",
- "pending_issuance": "123.000123",
- "policies": {
- "value": 4,
- "flags": [
- {
- "value": 1,
- "name": "General"
}
]
}, - "trailing_digits": 2,
- "type": 2,
- "state": {
- "value": 1,
- "name": "General"
}, - "details": { }
}
}
], - "links": {
- "next": "/v3/offers?include=base_asset&page[number]=2&page[limit]=15",
- "self": "/v3/offers?include=base_asset&page[number]=1&page[limit]=15"
}
}
An order book is a list of buy and sell orders for a specified asset pair organized by price level. An order book lists the amount of asset being bid or offered at each price point. It does not identify market participants behind buy and sell orders.
Returns the list of placed offers without private details.
id required | integer <int64> ID of an order book: 0 for the secondary market and sale ID otherwise |
base_asset | string <valid assetCode> Example: Base asset of requested offers |
quote_asset | string <valid assetCode> Example: Quote asset of requested offers |
is_buy | number Defines whether an offer is on buying or selling the |
include | string Enum: "base_asset" "quote_asset" Relationships that may be used for the included parameter. |
order book exists
bad input parameter
order book does not exist
TokenD Developer Environment
{- "data": [
- {
- "id": "BASE84651:QUOTE899:0:f:66110000",
- "type": "order-book-entries",
- "attributes": {
- "is_buy": false,
- "price": "33.050000",
- "base_amount": "33.050000",
- "quote_amount": "1092.302500",
- "cumulative_base_amount": "59.153000",
- "cumulative_quote_amount": "5813.004120",
- "created_at": "2012-11-01T22:08:41+00:00"
}, - "relationships": {
- "base_asset": {
- "data": {
- "id": "USD",
- "type": "assets"
}
}, - "quote_asset": {
- "data": {
- "id": "USD",
- "type": "assets"
}
}
}
}
], - "included": [
- {
- "id": "USD",
- "type": "assets",
- "relationships": {
- "owner": {
- "data": {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts"
}
}
}, - "attributes": {
- "pre_issuance_asset_signer": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "max_issuance_amount": "1000.000001",
- "available_for_issuance": "20.000000",
- "issued": "10.000000",
- "pending_issuance": "123.000123",
- "policies": {
- "value": 4,
- "flags": [
- {
- "value": 1,
- "name": "General"
}
]
}, - "trailing_digits": 2,
- "type": 2,
- "state": {
- "value": 1,
- "name": "General"
}, - "details": { }
}
}
], - "links": {
- "next": "/v3/order_book/0?include=base_asset&page[number]=2&page[limit]=15",
- "self": "/v3/order_book/0?include=base_asset&page[number]=1&page[limit]=15"
}
}
Returns the list of placed offers without private details.
id required | string Example: BTC:ETH:0 ID of the resource, formatted as |
max_entries | integer <uint64> Example: max_entries=10 Defines quantity of entries that will be returned in the response |
include | string Enum: "buy_entries" "sell_entries" "base_asset" "quote_asset" Relationships that may be used for the included parameter. |
order book exists
bad input parameter
order book does not exist
TokenD Developer Environment
{- "data": {
- "id": "BTC:ETH:0",
- "type": "order-books",
- "relationships": {
- "base_asset": {
- "data": {
- "id": "USD",
- "type": "assets"
}
}, - "quote_asset": {
- "data": {
- "id": "USD",
- "type": "assets"
}
}, - "buy_entries": {
- "data": [
- {
- "id": "BASE84651:QUOTE899:0:f:66110000",
- "type": "order-book-entries"
}
]
}, - "sell_entries": {
- "data": [
- {
- "id": "BASE84651:QUOTE899:0:f:66110000",
- "type": "order-book-entries"
}
]
}
}
}, - "included": [
- {
- "id": "BASE84651:QUOTE899:0:f:66110000",
- "type": "order-book-entries",
- "attributes": {
- "is_buy": false,
- "price": "33.050000",
- "base_amount": "33.050000",
- "quote_amount": "1092.302500",
- "cumulative_base_amount": "59.153000",
- "cumulative_quote_amount": "5813.004120",
- "created_at": "2012-11-01T22:08:41+00:00"
}, - "relationships": {
- "base_asset": {
- "data": {
- "id": "USD",
- "type": "assets"
}
}, - "quote_asset": {
- "data": {
- "id": "USD",
- "type": "assets"
}
}
}
}
]
}
Allows getting CreateSale
by ID
🔒 Requestor's or reviewer's signature is needed
filter[requestor] | string Filters requests by requestor - source of the operation. |
filter[reviewer] | string Filters requests by reviewer - account assigned to review requests. |
filter[state] | integer [ 1 .. 5 ] Filters requests by their state.
|
filter[pending_tasks] | integer Filters requests by existing tasks in pending tasks bit mask. Returns requests if all bits are set. |
filter[pending_tasks_not_set] | integer Filters requests by existing tasks in pending tasks bit mask. Returns requests if none of bits is set. |
filter[pending_tasks_any_of] | integer Filters requests by existing tasks in pending tasks bit mask. Returns requests if at least one bit is set. |
filter[request_details.base_asset] | string Filters create_sale requests by base asset. |
filter[request_details.default_quote_asset] | string Filters create_sale requests by default quote asset. |
include | string Enum: "request_details" "request_details.base_asset" "request_details.default_quote_asset" "request_details.quote_assets" Relationships that may be used for the included parameter. |
requests exist
bad input parameter
either an invalid signature has been provided or a signer has not been authorized to access specified resources
request does not exist
TokenD Developer Environment
{- "data": {
- "id": "12345",
- "type": "requests",
- "relationships": {
- "requestor": {
- "data": {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts"
}
}, - "reviewer": {
- "data": {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts"
}
}, - "request_details": {
- "data": {
- "id": "5",
- "type": "request-details-asset-create"
}
}
}, - "attributes": {
- "reject_reason": "source account underfunded",
- "hash": "13935d561f9ec54341243e6afaf0c8bf936928b07f6600204ba8ca550757d0a6",
- "all_tasks": 12,
- "pending_tasks": 2,
- "created_at": "2012-11-01T22:08:41+00:00",
- "updated_at": "2012-11-01T22:08:41+00:00",
- "state": "pending",
- "state_i": 0,
- "reference": "719111a51cfc5ad214e4e90ce6610f10e1cba165fd1bc9db73a031352b3bb61c",
- "external_details": { },
- "xdr_type": {
- "value": 1,
- "name": "General"
}
}
}, - "included": [
- {
- "id": "5",
- "type": "request-details-sale",
- "relationships": {
- "base_asset": {
- "data": {
- "id": "USD",
- "type": "assets"
}
}, - "default_quote_asset": {
- "data": {
- "id": "USD",
- "type": "assets"
}
}, - "quote_assets": {
- "data": [
- {
- "id": "USD",
- "type": "assets"
}
]
}
}, - "attributes": {
- "access_definition_type": "string",
- "base_asset_for_hard_cap": "1000.123456",
- "soft_cap": "123.678902",
- "hard_cap": "123.678901",
- "start_time": "2012-11-01T22:08:41+00:00",
- "end_time": "2012-11-01T22:08:41+00:00",
- "sale_type": 2,
- "creator_details": { }
}
}
]
}
Allows getting a filtered list of CreateSaleRequest
with details
🔒 Requestor's or reviewer's signature is needed
filter[requestor] | string Filters requests by requestor - source of the operation. |
filter[reviewer] | string Filters requests by reviewer - account assigned to review requests. |
filter[state] | integer [ 1 .. 5 ] Filters requests by their state.
|
filter[pending_tasks] | integer Filters requests by existing tasks in pending tasks bit mask. Returns requests if all bits are set. |
filter[pending_tasks_not_set] | integer Filters requests by existing tasks in pending tasks bit mask. Returns requests if none of bits is set. |
filter[pending_tasks_any_of] | integer Filters requests by existing tasks in pending tasks bit mask. Returns requests if at least one bit is set. |
filter[request_details.base_asset] | string Filters sale requests by base asset. |
filter[request_details.default_quote_asset] | string Filters sale requests by a default quote asset. |
include | string Enum: "request_details" "request_details.base_asset" "request_details.default_quote_asset" "request_details.quote_assets" Relationships that may be used for the included parameter. |
page[number] | integer >= 0 Page number to return. |
page[limit] | integer [ 1 .. 100 ] Default: 15 Numbers of items per page to return. |
page[order] | string Default: "asc" Enum: "asc" "desc" Order of records on the page. If sortingParam is not specified, order of records is by default sorted by ID. |
requests exist
bad input parameter
either an invalid signature has been provided or a signer has not been authorized to access specified resources
requests do not exist
TokenD Developer Environment
{- "data": [
- {
- "id": "12345",
- "type": "requests",
- "relationships": {
- "requestor": {
- "data": {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts"
}
}, - "reviewer": {
- "data": {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts"
}
}, - "request_details": {
- "data": {
- "id": "5",
- "type": "request-details-asset-create"
}
}
}, - "attributes": {
- "reject_reason": "source account underfunded",
- "hash": "13935d561f9ec54341243e6afaf0c8bf936928b07f6600204ba8ca550757d0a6",
- "all_tasks": 12,
- "pending_tasks": 2,
- "created_at": "2012-11-01T22:08:41+00:00",
- "updated_at": "2012-11-01T22:08:41+00:00",
- "state": "pending",
- "state_i": 0,
- "reference": "719111a51cfc5ad214e4e90ce6610f10e1cba165fd1bc9db73a031352b3bb61c",
- "external_details": { },
- "xdr_type": {
- "value": 1,
- "name": "General"
}
}
}
], - "included": [
- {
- "id": "5",
- "type": "request-details-sale",
- "relationships": {
- "base_asset": {
- "data": {
- "id": "USD",
- "type": "assets"
}
}, - "default_quote_asset": {
- "data": {
- "id": "USD",
- "type": "assets"
}
}, - "quote_assets": {
- "data": [
- {
- "id": "USD",
- "type": "assets"
}
]
}
}, - "attributes": {
- "access_definition_type": "string",
- "base_asset_for_hard_cap": "1000.123456",
- "soft_cap": "123.678902",
- "hard_cap": "123.678901",
- "start_time": "2012-11-01T22:08:41+00:00",
- "end_time": "2012-11-01T22:08:41+00:00",
- "sale_type": 2,
- "creator_details": { }
}
}
], - "links": {
- "next": "/v3/create_sale_requests?include=details&page[number]=2&page[limit]=15",
- "self": "/v3/create_sale_requests?include=details&page[number]=1&page[limit]=15"
}
}
Allows getting Sale
with corresponding details.
id required | integer <int64> Unique identifier of a sale |
include | string Example: include=base_asset,default_quote_asset Relationships that may be used for the included parameter. |
sale exists
bad input parameter
such a sale does not exist
TokenD Developer Environment
{- "data": {
- "id": "5",
- "type": "sales",
- "attributes": {
- "base_hard_cap": "140000.000000",
- "start_time": "2012-11-01T22:08:41+00:00",
- "end_time": "2012-11-01T22:08:41+00:00",
- "sale_type": 2,
- "sale_state": 2,
- "access_definition_type": {
- "value": 1,
- "name": "General"
}, - "details": { },
- "participants_count": null,
- "participations_count": null
}, - "relationships": {
- "owner": {
- "data": {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts"
}
}, - "base_asset": {
- "data": {
- "id": "USD",
- "type": "assets"
}
}, - "quote_assets": {
- "data": [
- {
- "id": "5",
- "type": "sale-quote-assets"
}
]
}, - "default_quote_asset": {
- "data": {
- "id": "5",
- "type": "sale-quote-assets"
}
}
}
}, - "included": [
- {
- "id": "USD",
- "type": "assets",
- "relationships": {
- "owner": {
- "data": {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts"
}
}
}, - "attributes": {
- "pre_issuance_asset_signer": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "max_issuance_amount": "1000.000001",
- "available_for_issuance": "20.000000",
- "issued": "10.000000",
- "pending_issuance": "123.000123",
- "policies": {
- "value": 4,
- "flags": [
- {
- "value": 1,
- "name": "General"
}
]
}, - "trailing_digits": 2,
- "type": 2,
- "state": {
- "value": 1,
- "name": "General"
}, - "details": { }
}
}
]
}
Allows getting Sale
with corresponding details.
🔒 Account owner's signature is needed
id required | string Unique identifier of an account |
sale_id required | integer <int64> Unique identifier of a sale |
include | string Example: include=base_asset,default_quote_asset Relationships that may be used for the included parameter. |
sale exists
bad input parameter
sale does not exist or account is not allowed to participate in it
TokenD Developer Environment
{- "data": {
- "id": "5",
- "type": "sales",
- "attributes": {
- "base_hard_cap": "140000.000000",
- "start_time": "2012-11-01T22:08:41+00:00",
- "end_time": "2012-11-01T22:08:41+00:00",
- "sale_type": 2,
- "sale_state": 2,
- "access_definition_type": {
- "value": 1,
- "name": "General"
}, - "details": { },
- "participants_count": null,
- "participations_count": null
}, - "relationships": {
- "owner": {
- "data": {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts"
}
}, - "base_asset": {
- "data": {
- "id": "USD",
- "type": "assets"
}
}, - "quote_assets": {
- "data": [
- {
- "id": "5",
- "type": "sale-quote-assets"
}
]
}, - "default_quote_asset": {
- "data": {
- "id": "5",
- "type": "sale-quote-assets"
}
}
}
}, - "included": [
- {
- "id": "USD",
- "type": "assets",
- "relationships": {
- "owner": {
- "data": {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts"
}
}
}, - "attributes": {
- "pre_issuance_asset_signer": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "max_issuance_amount": "1000.000001",
- "available_for_issuance": "20.000000",
- "issued": "10.000000",
- "pending_issuance": "123.000123",
- "policies": {
- "value": 4,
- "flags": [
- {
- "value": 1,
- "name": "General"
}
]
}, - "trailing_digits": 2,
- "type": 2,
- "state": {
- "value": 1,
- "name": "General"
}, - "details": { }
}
}
]
}
Allows getting a filtered list of Sale
with corresponding details.
filter[owner] | string Filters sales by a specified owner's account address. |
filter[min_start_time] | string <date-time> Example: filter[min_start_time]=2012-10-30T22:08:41+00:00 Filters sales by a specified minimum start time of the sale. |
filter[min_end_time] | string <date-time> Example: filter[min_end_time]=2012-10-30T22:08:41+00:00 Filters sales by a specified minimum end time of the sale. |
filter[max_start_time] | string <date-time> Example: filter[max_start_time]=2012-10-30T22:08:41+00:00 Filters sales by a specified maximal start time of the sale. |
filter[max_end_time] | string <date-time> Example: filter[max_end_time]=2012-10-30T22:08:41+00:00 Filters sales by a specified maximal end time of the sale. |
filter[state] | integer Example: filter[state]=1 Filters sales by a specified sale state. Available sale states:
|
filter[max_soft_cap] | number <float> Example: filter[max_soft_cap]=1.000000 Filters sales by specified maximum soft cap of the sale. |
filter[max_hard_cap] | number <float> Example: filter[max_hard_cap]=3.000000 Filters sales by specified maximum hard cap of the sale. |
filter[min_soft_cap] | number <float> Example: filter[min_soft_cap]=1.000000 Filters sales by specified minimum soft cap of the sale. |
filter[min_hard_cap] | number <float> Example: filter[min_hard_cap]=3.000000 Filters sales by specified minimum hard cap of the sale. |
filter[base_asset] | string Example: filter[base_asset]=BTC36174 Filters sales by a specified base asset of the sale. |
filter[sale_type] | integer Example: filter[sale_type]=1 Filters sales by a specified sale type. Available sale types:
|
include | string Enum: "base_asset" "quote_assets" "default_quote_asset" Relationships that may be used for the included parameter. |
page[number] | integer >= 0 Page number to return. |
page[limit] | integer [ 1 .. 100 ] Default: 15 Numbers of items per page to return. |
page[order] | string Default: "asc" Enum: "asc" "desc" Order of records on the page. If sortingParam is not specified, order of records is by default sorted by ID. |
sale exists
bad input parameter
TokenD Developer Environment
{- "data": [
- {
- "id": "5",
- "type": "sales",
- "attributes": {
- "base_hard_cap": "140000.000000",
- "start_time": "2012-11-01T22:08:41+00:00",
- "end_time": "2012-11-01T22:08:41+00:00",
- "sale_type": 2,
- "sale_state": 2,
- "access_definition_type": {
- "value": 1,
- "name": "General"
}, - "details": { },
- "participants_count": null,
- "participations_count": null
}, - "relationships": {
- "owner": {
- "data": {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts"
}
}, - "base_asset": {
- "data": {
- "id": "USD",
- "type": "assets"
}
}, - "quote_assets": {
- "data": [
- {
- "id": "5",
- "type": "sale-quote-assets"
}
]
}, - "default_quote_asset": {
- "data": {
- "id": "5",
- "type": "sale-quote-assets"
}
}
}
}
], - "included": [
- {
- "id": "USD",
- "type": "assets",
- "relationships": {
- "owner": {
- "data": {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts"
}
}
}, - "attributes": {
- "pre_issuance_asset_signer": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "max_issuance_amount": "1000.000001",
- "available_for_issuance": "20.000000",
- "issued": "10.000000",
- "pending_issuance": "123.000123",
- "policies": {
- "value": 4,
- "flags": [
- {
- "value": 1,
- "name": "General"
}
]
}, - "trailing_digits": 2,
- "type": 2,
- "state": {
- "value": 1,
- "name": "General"
}, - "details": { }
}
}
], - "links": {
- "next": "/v3/sales?include=default_quote_asset&page[number]=2&page[limit]=15",
- "self": "/v3/sales?include=default_quote_asset&page[number]=1&page[limit]=15"
}
}
Allows getting a filtered list of Sale
with corresponding details into which account can invest.
🔒 Account owner's signature is needed
id required | string Unique identifier of an account |
filter[owner] | string Filters sales by a specified owner's account address. |
filter[min_start_time] | string <date-time> Example: filter[min_start_time]=2012-10-30T22:08:41+00:00 Filters sales by a specified minimum start time of the sale. |
filter[min_end_time] | string <date-time> Example: filter[min_end_time]=2012-10-30T22:08:41+00:00 Filters sales by a specified minimum end time of the sale. |
filter[max_start_time] | string <date-time> Example: filter[max_start_time]=2012-10-30T22:08:41+00:00 Filters sales by a specified maximal start time of the sale. |
filter[max_end_time] | string <date-time> Example: filter[max_end_time]=2012-10-30T22:08:41+00:00 Filters sales by a specified maximal end time of the sale. |
filter[state] | integer Example: filter[state]=1 Filters sales by a specified sale state. Available sale states:
|
filter[max_soft_cap] | number <float> Example: filter[max_soft_cap]=1.000000 Filters sales by specified maximum soft cap of the sale. |
filter[max_hard_cap] | number <float> Example: filter[max_hard_cap]=3.000000 Filters sales by specified maximum hard cap of the sale. |
filter[min_soft_cap] | number <float> Example: filter[min_soft_cap]=1.000000 Filters sales by specified minimum soft cap of the sale. |
filter[min_hard_cap] | number <float> Example: filter[min_hard_cap]=3.000000 Filters sales by specified minimum hard cap of the sale. |
filter[base_asset] | string Example: filter[base_asset]=BTC36174 Filters sales by a specified base asset of the sale. |
filter[sale_type] | integer Example: filter[sale_type]=1 Filters sales by a specified sale type. Available sale types:
|
include | string Enum: "base_asset" "quote_assets" "default_quote_asset" Relationships that may be used for the included parameter. |
page[cursor] | integer >= 0 Cursor point to the end of the previous page |
page[limit] | integer [ 1 .. 100 ] Default: 15 Numbers of items per page to return. |
page[order] | string Default: "asc" Enum: "asc" "desc" Order of records on the page. If sortingParam is not specified, order of records is by default sorted by ID. |
sale exists
bad input parameter
TokenD Developer Environment
{- "data": [
- {
- "id": "5",
- "type": "sales",
- "attributes": {
- "base_hard_cap": "140000.000000",
- "start_time": "2012-11-01T22:08:41+00:00",
- "end_time": "2012-11-01T22:08:41+00:00",
- "sale_type": 2,
- "sale_state": 2,
- "access_definition_type": {
- "value": 1,
- "name": "General"
}, - "details": { },
- "participants_count": null,
- "participations_count": null
}, - "relationships": {
- "owner": {
- "data": {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts"
}
}, - "base_asset": {
- "data": {
- "id": "USD",
- "type": "assets"
}
}, - "quote_assets": {
- "data": [
- {
- "id": "5",
- "type": "sale-quote-assets"
}
]
}, - "default_quote_asset": {
- "data": {
- "id": "5",
- "type": "sale-quote-assets"
}
}
}
}
], - "included": [
- {
- "id": "USD",
- "type": "assets",
- "relationships": {
- "owner": {
- "data": {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts"
}
}
}, - "attributes": {
- "pre_issuance_asset_signer": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "max_issuance_amount": "1000.000001",
- "available_for_issuance": "20.000000",
- "issued": "10.000000",
- "pending_issuance": "123.000123",
- "policies": {
- "value": 4,
- "flags": [
- {
- "value": 1,
- "name": "General"
}
]
}, - "trailing_digits": 2,
- "type": 2,
- "state": {
- "value": 1,
- "name": "General"
}, - "details": { }
}
}
], - "links": {
- "next": "/v3/accounts/{id}/sales?include=default_quote_asset&?page[cursor]=1&page[limit]=15",
- "self": "/v3/accounts/{id}/sales?include=default_quote_asset&?page[cursor]=1&page[limit]=15"
}
}
Allows getting participation for sale.
🔒 Admin or sale owner signature is required.
id required | integer <int64> Example: 10 Unique identifier of a sale |
filter[participant] | string Filters sale participation by a specified participants's account address. |
filter[quote_asset] | string Example: filter[quote_asset]=BTC36174 Filters sale participations by a specified quote asset. |
include | string Enum: "base_asset" "quote_asset" Relationships that may be used for the included parameter. |
page[cursor] | integer >= 0 Cursor point to the end of the previous page |
page[limit] | integer [ 1 .. 100 ] Default: 15 Numbers of items per page to return. |
page[order] | string Default: "asc" Enum: "asc" "desc" Order of records on the page. If sortingParam is not specified, order of records is by default sorted by ID. |
participation exists
bad input parameter
either an invalid signature has been provided or a signer has not been authorized to access specified resources
sale does not exist
TokenD Developer Environment
{- "data": [
- {
- "id": 42,
- "type": "sale-participation",
- "relationships": {
- "quote_asset": {
- "data": {
- "id": "USD",
- "type": "assets"
}
}, - "base_asset": {
- "data": {
- "id": "USD",
- "type": "assets"
}
}, - "participant": {
- "data": {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts"
}
}
}, - "attributes": {
- "amount": "15.000000"
}
}
], - "included": [
- {
- "id": "USD",
- "type": "assets",
- "relationships": {
- "owner": {
- "data": {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts"
}
}
}, - "attributes": {
- "pre_issuance_asset_signer": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "max_issuance_amount": "1000.000001",
- "available_for_issuance": "20.000000",
- "issued": "10.000000",
- "pending_issuance": "123.000123",
- "policies": {
- "value": 4,
- "flags": [
- {
- "value": 1,
- "name": "General"
}
]
}, - "trailing_digits": 2,
- "type": 2,
- "state": {
- "value": 1,
- "name": "General"
}, - "details": { }
}
}
], - "links": {
- "next": "/v3/sales/{id}/relationships/participation?page[cursor]=1&page[limit]=15",
- "self": "/v3/sales/{id}/relationships/participation?page[cursor]=1&page[limit]=15"
}
}
Allows getting whitelist for sale.
🔒 Admin or sale owner signature is required.
id required | integer <int64> Example: 10 Unique identifier of a sale |
filter[address] | string <valid accountID> Example: filter[address]=GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH Filters entries by account address where they applied |
page[cursor] | integer >= 0 Cursor point to the end of the previous page |
page[limit] | integer [ 1 .. 100 ] Default: 15 Numbers of items per page to return. |
page[order] | string Default: "asc" Enum: "asc" "desc" Order of records on the page. If sortingParam is not specified, order of records is by default sorted by ID. |
whitelist exists
bad input parameter
either an invalid signature has been provided or a signer has not been authorized to access specified resources
whitelist does not exist
TokenD Developer Environment
{- "data": [
- {
- "id": "1",
- "type": "sale-whitelist",
- "relationships": {
- "participant": {
- "data": {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts"
}
}
}
}
], - "links": {
- "next": "/v3/sales/{id}/relationships/whitelist?page[cursor]=1&page[limit]=15",
- "self": "/v3/sales/{id}/relationships/whitelist?page[cursor]=1&page[limit]=15"
}
}
Allows getting UpdateSaleDetails
by ID
🔒 Requestor's or reviewer's signature is needed
filter[requestor] | string Filters requests by requestor - source of the operation. |
filter[reviewer] | string Filters requests by reviewer - account assigned to review requests. |
filter[state] | integer [ 1 .. 5 ] Filters requests by their state.
|
filter[pending_tasks] | integer Filters requests by existing tasks in pending tasks bit mask. Returns requests if all bits are set. |
filter[pending_tasks_not_set] | integer Filters requests by existing tasks in pending tasks bit mask. Returns requests if none of bits is set. |
filter[pending_tasks_any_of] | integer Filters requests by existing tasks in pending tasks bit mask. Returns requests if at least one bit is set. |
include | string Enum: "request_details" "request_details.sale" Relationships that may be used for the included parameter. |
requests exist
bad input parameter
either an invalid signature has been provided or a signer has not been authorized to access specified resources
request does not exist
TokenD Developer Environment
{- "data": {
- "id": "12345",
- "type": "requests",
- "relationships": {
- "requestor": {
- "data": {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts"
}
}, - "reviewer": {
- "data": {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts"
}
}, - "request_details": {
- "data": {
- "id": "5",
- "type": "request-details-asset-create"
}
}
}, - "attributes": {
- "reject_reason": "source account underfunded",
- "hash": "13935d561f9ec54341243e6afaf0c8bf936928b07f6600204ba8ca550757d0a6",
- "all_tasks": 12,
- "pending_tasks": 2,
- "created_at": "2012-11-01T22:08:41+00:00",
- "updated_at": "2012-11-01T22:08:41+00:00",
- "state": "pending",
- "state_i": 0,
- "reference": "719111a51cfc5ad214e4e90ce6610f10e1cba165fd1bc9db73a031352b3bb61c",
- "external_details": { },
- "xdr_type": {
- "value": 1,
- "name": "General"
}
}
}, - "included": [
- {
- "id": "5",
- "type": "request-details-update-sale-details",
- "relationships": {
- "sale": {
- "data": {
- "id": "5",
- "type": "sales"
}
}
}, - "attributes": {
- "creator_details": { }
}
}
]
}
Allows getting a filtered list of UpdateSaleDetailsRequest
with details
🔒 Requestor's or reviewer's signature is needed
filter[requestor] | string Filters requests by requestor - source of the operation. |
filter[reviewer] | string Filters requests by reviewer - account assigned to review requests. |
filter[state] | integer [ 1 .. 5 ] Filters requests by their state.
|
filter[pending_tasks] | integer Filters requests by existing tasks in pending tasks bit mask. Returns requests if all bits are set. |
filter[pending_tasks_not_set] | integer Filters requests by existing tasks in pending tasks bit mask. Returns requests if none of bits is set. |
filter[pending_tasks_any_of] | integer Filters requests by existing tasks in pending tasks bit mask. Returns requests if at least one bit is set. |
include | string Enum: "request_details" "request_details.sale" Relationships that may be used for the included parameter. |
page[number] | integer >= 0 Page number to return. |
page[limit] | integer [ 1 .. 100 ] Default: 15 Numbers of items per page to return. |
page[order] | string Default: "asc" Enum: "asc" "desc" Order of records on the page. If sortingParam is not specified, order of records is by default sorted by ID. |
requests exist
bad input parameter
either an invalid signature has been provided or a signer has not been authorized to access specified resources
requests do not exist
TokenD Developer Environment
{- "data": [
- {
- "id": "12345",
- "type": "requests",
- "relationships": {
- "requestor": {
- "data": {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts"
}
}, - "reviewer": {
- "data": {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts"
}
}, - "request_details": {
- "data": {
- "id": "5",
- "type": "request-details-asset-create"
}
}
}, - "attributes": {
- "reject_reason": "source account underfunded",
- "hash": "13935d561f9ec54341243e6afaf0c8bf936928b07f6600204ba8ca550757d0a6",
- "all_tasks": 12,
- "pending_tasks": 2,
- "created_at": "2012-11-01T22:08:41+00:00",
- "updated_at": "2012-11-01T22:08:41+00:00",
- "state": "pending",
- "state_i": 0,
- "reference": "719111a51cfc5ad214e4e90ce6610f10e1cba165fd1bc9db73a031352b3bb61c",
- "external_details": { },
- "xdr_type": {
- "value": 1,
- "name": "General"
}
}
}
], - "included": [
- {
- "id": "5",
- "type": "request-details-update-sale-details",
- "relationships": {
- "sale": {
- "data": {
- "id": "5",
- "type": "sales"
}
}
}, - "attributes": {
- "creator_details": { }
}
}
], - "links": {
- "next": "/v3/update_sale_details_requests?include=details&page[number]=2&page[limit]=15",
- "self": "/v3/update_sale_details_requests?include=details&page[number]=1&page[limit]=15"
}
}
Allows getting a filtered list of Match
with corresponding details.
filter[base_asset] required | string <valid assetCode> Example: filter[base_asset]=BTC Filters matches by specified base asset code |
filter[quote_asset] required | string <valid assetCode> Example: filter[quote_asset]=ETH Filters matches by specified quote asset code |
filter[order_book] required | number <int64> Example: filter[order_book]=2 Filters offers by specified order book ID Defines whether offers are for sale or for trade (0 - secondary market, saleId - for specific sale) |
page[cursor] | integer >= 0 Cursor point to the end of the previous page |
page[limit] | integer [ 1 .. 100 ] Default: 15 Numbers of items per page to return. |
page[order] | string Default: "asc" Enum: "asc" "desc" Order of records on the page. If sortingParam is not specified, order of records is by default sorted by ID. |
matches exist
bad input parameter
order book does not exist
TokenD Developer Environment
{- "data": [
- {
- "id": "17179869186",
- "type": "matches",
- "attributes": {
- "created_at": "2018-11-01T22:11:41Z",
- "quote_amount": "34.551851",
- "base_amount": "55.001291",
- "price": "51.150509"
}, - "relationships": {
- "base_asset": {
- "data": {
- "id": "USD",
- "type": "assets"
}
}, - "quote_asset": {
- "data": {
- "id": "USD",
- "type": "assets"
}
}
}
}
], - "included": [ ],
- "links": {
- "next": "/v3/matches?include=asset&page[number]=2&page[limit]=15",
- "self": "/v3/matches?include=asset&page[number]=1&page[limit]=15"
}
}
Allows getting LiquidityPool
with corresponding details
id required | integer <int64> Unique identifier of a liquidity pool |
include | string Example: include=assets Relationships that may be used for the included parameter. |
Liquidity pool exists
Bad input parameter
Such a liquidity pool does not exist
TokenD Developer Environment
{- "data": {
- "id": "5",
- "type": "liquidity-pools",
- "attributes": {
- "account_id": "GAAHBWGMVTCZKDTVSJX4Z3F6HTEOZJZJIBZMH3G6UUFPPBTRP45OFOPK",
- "first_reserve": "10.000000",
- "second_reserve": "20.000000",
- "lp_tokens_amount": "1.4143526"
}, - "relationships": {
- "first_asset": {
- "data": {
- "id": "USD",
- "type": "assets"
}
}, - "second_asset": {
- "data": {
- "id": "USD",
- "type": "assets"
}
}, - "lp_tokens_asset": {
- "data": {
- "id": "USD",
- "type": "assets"
}
}, - "first_balance": {
- "data": {
- "id": "BDLXKLLVS6UIQEDYCZKIC5222GGQLCOTHM4BWXVCBDQMJTUWUFUATV2Q",
- "type": "balances"
}
}, - "second_balance": {
- "data": {
- "id": "BDLXKLLVS6UIQEDYCZKIC5222GGQLCOTHM4BWXVCBDQMJTUWUFUATV2Q",
- "type": "balances"
}
}
}
}
}
Allows getting a filtered list of LiquidityPool
with corresponding details
filter[lp_token] | string Filters liquidity pools by a specified liquidity pool's token asset code. |
filter[asset] | string Filters liquidity pools by a specified asset from assets pair. |
filter[balances_owner] | string Filters liquidity pools by a balances of the specified account's address. |
filter[excluded_assets] | array Excludes liquidity pools from the filter by asset codes. |
include | string Example: include=assets Relationships that may be used for the included parameter. |
page[number] | integer >= 0 Page number to return. |
page[limit] | integer [ 1 .. 100 ] Default: 15 Numbers of items per page to return. |
page[order] | string Default: "asc" Enum: "asc" "desc" Order of records on the page. If sortingParam is not specified, order of records is by default sorted by ID. |
Liquidity pool exists
Bad input parameter
TokenD Developer Environment
{- "data": [
- {
- "id": "5",
- "type": "liquidity-pools",
- "attributes": {
- "account_id": "GAAHBWGMVTCZKDTVSJX4Z3F6HTEOZJZJIBZMH3G6UUFPPBTRP45OFOPK",
- "first_reserve": "10.000000",
- "second_reserve": "20.000000",
- "lp_tokens_amount": "1.4143526"
}, - "relationships": {
- "first_asset": {
- "data": {
- "id": "USD",
- "type": "assets"
}
}, - "second_asset": {
- "data": {
- "id": "USD",
- "type": "assets"
}
}, - "lp_tokens_asset": {
- "data": {
- "id": "USD",
- "type": "assets"
}
}, - "first_balance": {
- "data": {
- "id": "BDLXKLLVS6UIQEDYCZKIC5222GGQLCOTHM4BWXVCBDQMJTUWUFUATV2Q",
- "type": "balances"
}
}, - "second_balance": {
- "data": {
- "id": "BDLXKLLVS6UIQEDYCZKIC5222GGQLCOTHM4BWXVCBDQMJTUWUFUATV2Q",
- "type": "balances"
}
}
}
}
], - "links": {
- "next": "/v3/liquidity-pools?include=assets&page[number]=2&page[limit]=15",
- "self": "/v3/liquidity-pools?include=assets&page[number]=1&page[limit]=15"
}
}
Allows getting CreatePreIssuance
by ID
🔒 Requestor's or reviewer's signature is needed
filter[requestor] | string Filters requests by requestor - source of the operation. |
filter[reviewer] | string Filters requests by reviewer - account assigned to review requests. |
filter[state] | integer [ 1 .. 5 ] Filters requests by their state.
|
filter[pending_tasks] | integer Filters requests by existing tasks in pending tasks bit mask. Returns requests if all bits are set. |
filter[pending_tasks_not_set] | integer Filters requests by existing tasks in pending tasks bit mask. Returns requests if none of bits is set. |
filter[pending_tasks_any_of] | integer Filters requests by existing tasks in pending tasks bit mask. Returns requests if at least one bit is set. |
filter[request_details.asset] | string Filters preissuance create requests by asset code. |
include | string Enum: "request_details" "request_details.asset" Relationships that may be used for the included parameter. |
requests exist
bad input parameter
either an invalid signature has been provided or a signer has not been authorized to access specified resources
request does not exist
TokenD Developer Environment
{- "data": {
- "id": "12345",
- "type": "requests",
- "relationships": {
- "requestor": {
- "data": {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts"
}
}, - "reviewer": {
- "data": {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts"
}
}, - "request_details": {
- "data": {
- "id": "5",
- "type": "request-details-asset-create"
}
}
}, - "attributes": {
- "reject_reason": "source account underfunded",
- "hash": "13935d561f9ec54341243e6afaf0c8bf936928b07f6600204ba8ca550757d0a6",
- "all_tasks": 12,
- "pending_tasks": 2,
- "created_at": "2012-11-01T22:08:41+00:00",
- "updated_at": "2012-11-01T22:08:41+00:00",
- "state": "pending",
- "state_i": 0,
- "reference": "719111a51cfc5ad214e4e90ce6610f10e1cba165fd1bc9db73a031352b3bb61c",
- "external_details": { },
- "xdr_type": {
- "value": 1,
- "name": "General"
}
}
}, - "included": [
- {
- "id": "5",
- "type": "request-details-pre-issuance",
- "relationships": {
- "asset": {
- "data": {
- "id": "USD",
- "type": "assets"
}
}
}, - "attributes": {
- "amount": "123214.123456",
- "signature": "a343e3cbcc72928a571778f77bf2554eb5b72c79ce28bbc9d3325c60c21e5241",
- "reference": "a343e3cbcc72928a571778f77bf2554eb5b72c79ce28bbc9d3325c60c2123451",
- "creator_details": { }
}
}
]
}
Allows getting a filtered list of AssetCreateRequest
with details
🔒 Requestor's or reviewer's signature is needed
filter[requestor] | string Filters requests by requestor - source of the operation. |
filter[reviewer] | string Filters requests by reviewer - account assigned to review requests. |
filter[state] | integer [ 1 .. 5 ] Filters requests by their state.
|
filter[pending_tasks] | integer Filters requests by existing tasks in pending tasks bit mask. Returns requests if all bits are set. |
filter[pending_tasks_not_set] | integer Filters requests by existing tasks in pending tasks bit mask. Returns requests if none of bits is set. |
filter[pending_tasks_any_of] | integer Filters requests by existing tasks in pending tasks bit mask. Returns requests if at least one bit is set. |
filter[request_details.asset] | string Filters preissuance create requests by asset code. |
include | string Enum: "request_details" "request_details.asset" Relationships that may be used for the included parameter. |
page[number] | integer >= 0 Page number to return. |
page[limit] | integer [ 1 .. 100 ] Default: 15 Numbers of items per page to return. |
page[order] | string Default: "asc" Enum: "asc" "desc" Order of records on the page. If sortingParam is not specified, order of records is by default sorted by ID. |
requests exist
bad input parameter
either an invalid signature has been provided or a signer has not been authorized to access specified resources
requests do not exist
TokenD Developer Environment
{- "data": [
- {
- "id": "12345",
- "type": "requests",
- "relationships": {
- "requestor": {
- "data": {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts"
}
}, - "reviewer": {
- "data": {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts"
}
}, - "request_details": {
- "data": {
- "id": "5",
- "type": "request-details-asset-create"
}
}
}, - "attributes": {
- "reject_reason": "source account underfunded",
- "hash": "13935d561f9ec54341243e6afaf0c8bf936928b07f6600204ba8ca550757d0a6",
- "all_tasks": 12,
- "pending_tasks": 2,
- "created_at": "2012-11-01T22:08:41+00:00",
- "updated_at": "2012-11-01T22:08:41+00:00",
- "state": "pending",
- "state_i": 0,
- "reference": "719111a51cfc5ad214e4e90ce6610f10e1cba165fd1bc9db73a031352b3bb61c",
- "external_details": { },
- "xdr_type": {
- "value": 1,
- "name": "General"
}
}
}
], - "included": [
- {
- "id": "5",
- "type": "request-details-pre-issuance",
- "relationships": {
- "asset": {
- "data": {
- "id": "USD",
- "type": "assets"
}
}
}, - "attributes": {
- "amount": "123214.123456",
- "signature": "a343e3cbcc72928a571778f77bf2554eb5b72c79ce28bbc9d3325c60c21e5241",
- "reference": "a343e3cbcc72928a571778f77bf2554eb5b72c79ce28bbc9d3325c60c2123451",
- "creator_details": { }
}
}
], - "links": {
- "next": "/v3/create_pre_issuance_requests?include=details&page[number]=2&page[limit]=15",
- "self": "/v3/create_pre_issuance_requests?include=details&page[number]=1&page[limit]=15"
}
}
Allows getting KeyValueEntry
with corresponding details.
key required | string Example: max_contracts_count Unique identifier of the key-value entry |
key-value entry exists
bad input parameter
key-value entry does not exist
TokenD Developer Environment
{- "data": {
- "id": "max_contracts_count",
- "type": "key-value-entries",
- "attributes": {
- "value": {
- "type": {
- "value": 1,
- "name": "General"
}, - "u32": 1
}
}
}
}
Allows getting KeyValueEntry
with corresponding details.
page[number] | integer >= 0 Page number to return. |
page[limit] | integer [ 1 .. 100 ] Default: 15 Numbers of items per page to return. |
page[order] | string Default: "asc" Enum: "asc" "desc" Order of records on the page. If sortingParam is not specified, order of records is by default sorted by ID. |
KeyValue entries exist
bad input parameter
TokenD Developer Environment
{- "data": [
- {
- "id": "max_contracts_count",
- "type": "key-value-entries",
- "attributes": {
- "value": {
- "type": {
- "value": 1,
- "name": "General"
}, - "u32": 1
}
}
}
], - "included": [ ],
- "links": {
- "next": "/v3/key_values?page[number]=2&page[limit]=15",
- "self": "/v3/key_values?page[number]=1&page[limit]=15"
}
}
Allows getting current license information
succesfully retrieved license
server overloaded
TokenD Developer Environment
{- "id": "12",
- "type": "license-info",
- "attributes": {
- "due_date": "2019-03-04T18:42:15Z",
- "admin_count": 0,
- "current_admin_count": 0
}
}
Allows getting Data
resource by ID.
include | string Value: "owner" Relationships that may be used for the included parameter. |
bad input parameter
TokenD Developer Environment
{- "data": {
- "id": "10",
- "type": "datas",
- "relationships": {
- "owner": {
- "data": {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts"
}
}
}, - "attributes": {
- "type": 4,
- "value": { }
}
}, - "included": [
- {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts"
}
]
}
Allows getting a filtered list of data creation requests with details
🔒 Requestor's or reviewer's signature is needed
filter[requestor] | string Filters requests by requestor - source of the operation. |
filter[reviewer] | string Filters requests by reviewer - account assigned to review requests. |
filter[state] | integer [ 1 .. 5 ] Filters requests by their state.
|
filter[pending_tasks] | integer Filters requests by existing tasks in pending tasks bit mask. Returns requests if all bits are set. |
filter[pending_tasks_not_set] | integer Filters requests by existing tasks in pending tasks bit mask. Returns requests if none of bits is set. |
filter[pending_tasks_any_of] | integer Filters requests by existing tasks in pending tasks bit mask. Returns requests if at least one bit is set. |
include | string Value: "request_details" Relationships that may be used for the included parameter. |
page[number] | integer >= 0 Page number to return. |
page[limit] | integer [ 1 .. 100 ] Default: 15 Numbers of items per page to return. |
page[order] | string Default: "asc" Enum: "asc" "desc" Order of records on the page. If sortingParam is not specified, order of records is by default sorted by ID. |
requests exist
bad input parameter
either an invalid signature has been provided or a signer has not been authorized to access specified resources
requests do not exist
TokenD Developer Environment
{- "data": [
- {
- "id": "12345",
- "type": "requests",
- "relationships": {
- "requestor": {
- "data": {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts"
}
}, - "reviewer": {
- "data": {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts"
}
}, - "request_details": {
- "data": {
- "id": "5",
- "type": "request-details-asset-create"
}
}
}, - "attributes": {
- "reject_reason": "source account underfunded",
- "hash": "13935d561f9ec54341243e6afaf0c8bf936928b07f6600204ba8ca550757d0a6",
- "all_tasks": 12,
- "pending_tasks": 2,
- "created_at": "2012-11-01T22:08:41+00:00",
- "updated_at": "2012-11-01T22:08:41+00:00",
- "state": "pending",
- "state_i": 0,
- "reference": "719111a51cfc5ad214e4e90ce6610f10e1cba165fd1bc9db73a031352b3bb61c",
- "external_details": { },
- "xdr_type": {
- "value": 1,
- "name": "General"
}
}
}
], - "included": [
- {
- "id": "5",
- "type": "request-details-data-creation",
- "relationships": {
- "owner": {
- "data": {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts"
}
}
}, - "attributes": {
- "sequence_number": 10,
- "creator_details": { },
- "type": 0,
- "value": { }
}
}
], - "links": {
- "next": "/v3/redemption_requests?include=details&page[number]=2&page[limit]=15",
- "self": "/v3/redemption_requests?include=details&page[number]=1&page[limit]=15"
}
}
Allows getting list of Data
resources.
filter[type] | string Filter data by its security type |
filter[owner] | string Filter data by its owner |
include | string Value: "owner" Relationships that may be used for the included parameter. |
page[number] | integer >= 0 Page number to return. |
page[limit] | integer [ 1 .. 100 ] Default: 15 Numbers of items per page to return. |
page[order] | string Default: "asc" Enum: "asc" "desc" Order of records on the page. If sortingParam is not specified, order of records is by default sorted by ID. |
bad input parameter
TokenD Developer Environment
{- "data": [
- {
- "id": "10",
- "type": "datas",
- "relationships": {
- "owner": {
- "data": {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts"
}
}
}, - "attributes": {
- "type": 4,
- "value": { }
}
}
], - "included": [
- {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts"
}
]
}
Allows getting a data owner update requests with details
🔒 Requestor's or reviewer's signature is needed
filter[requestor] | string Filters requests by requestor - source of the operation. |
filter[reviewer] | string Filters requests by reviewer - account assigned to review requests. |
filter[state] | integer [ 1 .. 5 ] Filters requests by their state.
|
filter[pending_tasks] | integer Filters requests by existing tasks in pending tasks bit mask. Returns requests if all bits are set. |
filter[pending_tasks_not_set] | integer Filters requests by existing tasks in pending tasks bit mask. Returns requests if none of bits is set. |
filter[pending_tasks_any_of] | integer Filters requests by existing tasks in pending tasks bit mask. Returns requests if at least one bit is set. |
include | string Value: "request_details" Relationships that may be used for the included parameter. |
page[number] | integer >= 0 Page number to return. |
page[limit] | integer [ 1 .. 100 ] Default: 15 Numbers of items per page to return. |
page[order] | string Default: "asc" Enum: "asc" "desc" Order of records on the page. If sortingParam is not specified, order of records is by default sorted by ID. |
requests exist
bad input parameter
either an invalid signature has been provided or a signer has not been authorized to access specified resources
requests do not exist
TokenD Developer Environment
{- "data": {
- "id": "12345",
- "type": "requests",
- "relationships": {
- "requestor": {
- "data": {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts"
}
}, - "reviewer": {
- "data": {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts"
}
}, - "request_details": {
- "data": {
- "id": "5",
- "type": "request-details-asset-create"
}
}
}, - "attributes": {
- "reject_reason": "source account underfunded",
- "hash": "13935d561f9ec54341243e6afaf0c8bf936928b07f6600204ba8ca550757d0a6",
- "all_tasks": 12,
- "pending_tasks": 2,
- "created_at": "2012-11-01T22:08:41+00:00",
- "updated_at": "2012-11-01T22:08:41+00:00",
- "state": "pending",
- "state_i": 0,
- "reference": "719111a51cfc5ad214e4e90ce6610f10e1cba165fd1bc9db73a031352b3bb61c",
- "external_details": { },
- "xdr_type": {
- "value": 1,
- "name": "General"
}
}
}, - "included": [
- {
- "id": "5",
- "type": "request-details-data-owner-update",
- "relationships": {
- "data": {
- "id": "10",
- "type": "datas"
}, - "new_owner": {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts"
}
}, - "attributes": {
- "creator_details": { }
}
}
]
}
Allows getting a filtered list of data owner update requests with details
🔒 Requestor's or reviewer's signature is needed
filter[requestor] | string Filters requests by requestor - source of the operation. |
filter[reviewer] | string Filters requests by reviewer - account assigned to review requests. |
filter[state] | integer [ 1 .. 5 ] Filters requests by their state.
|
filter[pending_tasks] | integer Filters requests by existing tasks in pending tasks bit mask. Returns requests if all bits are set. |
filter[pending_tasks_not_set] | integer Filters requests by existing tasks in pending tasks bit mask. Returns requests if none of bits is set. |
filter[pending_tasks_any_of] | integer Filters requests by existing tasks in pending tasks bit mask. Returns requests if at least one bit is set. |
include | string Value: "request_details" Relationships that may be used for the included parameter. |
page[number] | integer >= 0 Page number to return. |
page[limit] | integer [ 1 .. 100 ] Default: 15 Numbers of items per page to return. |
page[order] | string Default: "asc" Enum: "asc" "desc" Order of records on the page. If sortingParam is not specified, order of records is by default sorted by ID. |
requests exist
bad input parameter
either an invalid signature has been provided or a signer has not been authorized to access specified resources
requests do not exist
TokenD Developer Environment
{- "data": [
- {
- "id": "12345",
- "type": "requests",
- "relationships": {
- "requestor": {
- "data": {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts"
}
}, - "reviewer": {
- "data": {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts"
}
}, - "request_details": {
- "data": {
- "id": "5",
- "type": "request-details-asset-create"
}
}
}, - "attributes": {
- "reject_reason": "source account underfunded",
- "hash": "13935d561f9ec54341243e6afaf0c8bf936928b07f6600204ba8ca550757d0a6",
- "all_tasks": 12,
- "pending_tasks": 2,
- "created_at": "2012-11-01T22:08:41+00:00",
- "updated_at": "2012-11-01T22:08:41+00:00",
- "state": "pending",
- "state_i": 0,
- "reference": "719111a51cfc5ad214e4e90ce6610f10e1cba165fd1bc9db73a031352b3bb61c",
- "external_details": { },
- "xdr_type": {
- "value": 1,
- "name": "General"
}
}
}
], - "included": [
- {
- "id": "5",
- "type": "request-details-data-owner-update",
- "relationships": {
- "data": {
- "id": "10",
- "type": "datas"
}, - "new_owner": {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts"
}
}, - "attributes": {
- "creator_details": { }
}
}
], - "links": {
- "next": "/v3/data_owner_update_requests?include=details&page[number]=2&page[limit]=15",
- "self": "/v3/data_owner_update_requests?include=details&page[number]=1&page[limit]=15"
}
}
Allows getting a filtered list of data remove requests with details
🔒 Requestor's or reviewer's signature is needed
filter[requestor] | string Filters requests by requestor - source of the operation. |
filter[reviewer] | string Filters requests by reviewer - account assigned to review requests. |
filter[state] | integer [ 1 .. 5 ] Filters requests by their state.
|
filter[pending_tasks] | integer Filters requests by existing tasks in pending tasks bit mask. Returns requests if all bits are set. |
filter[pending_tasks_not_set] | integer Filters requests by existing tasks in pending tasks bit mask. Returns requests if none of bits is set. |
filter[pending_tasks_any_of] | integer Filters requests by existing tasks in pending tasks bit mask. Returns requests if at least one bit is set. |
include | string Value: "request_details" Relationships that may be used for the included parameter. |
page[number] | integer >= 0 Page number to return. |
page[limit] | integer [ 1 .. 100 ] Default: 15 Numbers of items per page to return. |
page[order] | string Default: "asc" Enum: "asc" "desc" Order of records on the page. If sortingParam is not specified, order of records is by default sorted by ID. |
requests exist
bad input parameter
either an invalid signature has been provided or a signer has not been authorized to access specified resources
requests do not exist
TokenD Developer Environment
{- "data": [
- {
- "id": "12345",
- "type": "requests",
- "relationships": {
- "requestor": {
- "data": {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts"
}
}, - "reviewer": {
- "data": {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts"
}
}, - "request_details": {
- "data": {
- "id": "5",
- "type": "request-details-asset-create"
}
}
}, - "attributes": {
- "reject_reason": "source account underfunded",
- "hash": "13935d561f9ec54341243e6afaf0c8bf936928b07f6600204ba8ca550757d0a6",
- "all_tasks": 12,
- "pending_tasks": 2,
- "created_at": "2012-11-01T22:08:41+00:00",
- "updated_at": "2012-11-01T22:08:41+00:00",
- "state": "pending",
- "state_i": 0,
- "reference": "719111a51cfc5ad214e4e90ce6610f10e1cba165fd1bc9db73a031352b3bb61c",
- "external_details": { },
- "xdr_type": {
- "value": 1,
- "name": "General"
}
}
}
], - "included": [
- {
- "id": "5",
- "type": "request-details-data-remove",
- "relationships": {
- "data": {
- "id": "10",
- "type": "datas"
}
}, - "attributes": {
- "sequence_number": 10,
- "creator_details": { }
}
}
], - "links": {
- "next": "/v3/redemption_requests?include=details&page[number]=2&page[limit]=15",
- "self": "/v3/redemption_requests?include=details&page[number]=1&page[limit]=15"
}
}
Allows getting a filtered list of data update requests with details
🔒 Requestor's or reviewer's signature is needed
filter[requestor] | string Filters requests by requestor - source of the operation. |
filter[reviewer] | string Filters requests by reviewer - account assigned to review requests. |
filter[state] | integer [ 1 .. 5 ] Filters requests by their state.
|
filter[pending_tasks] | integer Filters requests by existing tasks in pending tasks bit mask. Returns requests if all bits are set. |
filter[pending_tasks_not_set] | integer Filters requests by existing tasks in pending tasks bit mask. Returns requests if none of bits is set. |
filter[pending_tasks_any_of] | integer Filters requests by existing tasks in pending tasks bit mask. Returns requests if at least one bit is set. |
include | string Value: "request_details" Relationships that may be used for the included parameter. |
page[number] | integer >= 0 Page number to return. |
page[limit] | integer [ 1 .. 100 ] Default: 15 Numbers of items per page to return. |
page[order] | string Default: "asc" Enum: "asc" "desc" Order of records on the page. If sortingParam is not specified, order of records is by default sorted by ID. |
requests exist
bad input parameter
either an invalid signature has been provided or a signer has not been authorized to access specified resources
requests do not exist
TokenD Developer Environment
{- "data": [
- {
- "id": "12345",
- "type": "requests",
- "relationships": {
- "requestor": {
- "data": {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts"
}
}, - "reviewer": {
- "data": {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts"
}
}, - "request_details": {
- "data": {
- "id": "5",
- "type": "request-details-asset-create"
}
}
}, - "attributes": {
- "reject_reason": "source account underfunded",
- "hash": "13935d561f9ec54341243e6afaf0c8bf936928b07f6600204ba8ca550757d0a6",
- "all_tasks": 12,
- "pending_tasks": 2,
- "created_at": "2012-11-01T22:08:41+00:00",
- "updated_at": "2012-11-01T22:08:41+00:00",
- "state": "pending",
- "state_i": 0,
- "reference": "719111a51cfc5ad214e4e90ce6610f10e1cba165fd1bc9db73a031352b3bb61c",
- "external_details": { },
- "xdr_type": {
- "value": 1,
- "name": "General"
}
}
}
], - "included": [
- {
- "id": "5",
- "type": "request-details-data-update",
- "relationships": {
- "data": {
- "id": "10",
- "type": "datas"
}
}, - "attributes": {
- "sequence_number": 10,
- "creator_details": { },
- "value": { }
}
}
], - "links": {
- "next": "/v3/redemption_requests?include=details&page[number]=2&page[limit]=15",
- "self": "/v3/redemption_requests?include=details&page[number]=1&page[limit]=15"
}
}
Allows getting CreatePoll
by ID
🔒 Requestor's or reviewer's signature is needed
filter[requestor] | string Filters requests by requestor - source of the operation. |
filter[reviewer] | string Filters requests by reviewer - account assigned to review requests. |
filter[state] | integer [ 1 .. 5 ] Filters requests by their state.
|
filter[pending_tasks] | integer Filters requests by existing tasks in pending tasks bit mask. Returns requests if all bits are set. |
filter[pending_tasks_not_set] | integer Filters requests by existing tasks in pending tasks bit mask. Returns requests if none of bits is set. |
filter[pending_tasks_any_of] | integer Filters requests by existing tasks in pending tasks bit mask. Returns requests if at least one bit is set. |
filter[request_details.permission_type] | uint64 Filters create_poll requests by permission type. |
filter[request_details.vote_confirmation_required] | boolean Filters create_poll requests by |
include | string Value: "request_details" Relationships that may be used for the included parameter. |
requests exist
bad input parameter
either an invalid signature has been provided or a signer has not been authorized to access specified resources
request does not exist
TokenD Developer Environment
{- "data": {
- "id": "12345",
- "type": "requests",
- "relationships": {
- "requestor": {
- "data": {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts"
}
}, - "reviewer": {
- "data": {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts"
}
}, - "request_details": {
- "data": {
- "id": "5",
- "type": "request-details-asset-create"
}
}
}, - "attributes": {
- "reject_reason": "source account underfunded",
- "hash": "13935d561f9ec54341243e6afaf0c8bf936928b07f6600204ba8ca550757d0a6",
- "all_tasks": 12,
- "pending_tasks": 2,
- "created_at": "2012-11-01T22:08:41+00:00",
- "updated_at": "2012-11-01T22:08:41+00:00",
- "state": "pending",
- "state_i": 0,
- "reference": "719111a51cfc5ad214e4e90ce6610f10e1cba165fd1bc9db73a031352b3bb61c",
- "external_details": { },
- "xdr_type": {
- "value": 1,
- "name": "General"
}
}
}, - "included": [
- {
- "id": "5",
- "type": "request-details-create-poll",
- "relationships": {
- "result_provider": {
- "data": {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts"
}
}
}, - "attributes": {
- "permission_type": 4,
- "number_of_choices": 2,
- "start_time": "2012-11-01T22:08:41Z",
- "end_time": "2012-11-01T22:08:41Z",
- "vote_confirmation_required": true,
- "poll_data": {
- "type": {
- "value": 1,
- "name": "General"
}
}, - "creator_details": { }
}
}
]
}
Allows getting a filtered list of CreatePollRequest
with details
🔒 Requestor's or reviewer's signature is needed
filter[requestor] | string Filters requests by requestor - source of the operation. |
filter[reviewer] | string Filters requests by reviewer - account assigned to review requests. |
filter[state] | integer [ 1 .. 5 ] Filters requests by their state.
|
filter[pending_tasks] | integer Filters requests by existing tasks in pending tasks bit mask. Returns requests if all bits are set. |
filter[pending_tasks_not_set] | integer Filters requests by existing tasks in pending tasks bit mask. Returns requests if none of bits is set. |
filter[pending_tasks_any_of] | integer Filters requests by existing tasks in pending tasks bit mask. Returns requests if at least one bit is set. |
filter[request_details.result_provider] | string Filters poll requests by result provider. |
filter[request_details.vote_confirmation_required] | string Filters poll requests by a |
filter[request_details.permission_type] | string Filters poll requests by permission type. |
include | string Value: "request_details" Relationships that may be used for the included parameter. |
page[number] | integer >= 0 Page number to return. |
page[limit] | integer [ 1 .. 100 ] Default: 15 Numbers of items per page to return. |
page[order] | string Default: "asc" Enum: "asc" "desc" Order of records on the page. If sortingParam is not specified, order of records is by default sorted by ID. |
requests exist
bad input parameter
either an invalid signature has been provided or a signer has not been authorized to access specified resources
requests do not exist
TokenD Developer Environment
{- "data": [
- {
- "id": "12345",
- "type": "requests",
- "relationships": {
- "requestor": {
- "data": {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts"
}
}, - "reviewer": {
- "data": {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts"
}
}, - "request_details": {
- "data": {
- "id": "5",
- "type": "request-details-asset-create"
}
}
}, - "attributes": {
- "reject_reason": "source account underfunded",
- "hash": "13935d561f9ec54341243e6afaf0c8bf936928b07f6600204ba8ca550757d0a6",
- "all_tasks": 12,
- "pending_tasks": 2,
- "created_at": "2012-11-01T22:08:41+00:00",
- "updated_at": "2012-11-01T22:08:41+00:00",
- "state": "pending",
- "state_i": 0,
- "reference": "719111a51cfc5ad214e4e90ce6610f10e1cba165fd1bc9db73a031352b3bb61c",
- "external_details": { },
- "xdr_type": {
- "value": 1,
- "name": "General"
}
}
}
], - "included": [
- {
- "id": "5",
- "type": "request-details-create-poll",
- "relationships": {
- "result_provider": {
- "data": {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts"
}
}
}, - "attributes": {
- "permission_type": 4,
- "number_of_choices": 2,
- "start_time": "2012-11-01T22:08:41Z",
- "end_time": "2012-11-01T22:08:41Z",
- "vote_confirmation_required": true,
- "poll_data": {
- "type": {
- "value": 1,
- "name": "General"
}
}, - "creator_details": { }
}
}
], - "links": {
- "next": "/v3/create_poll_requests?include=details&page[number]=2&page[limit]=15",
- "self": "/v3/create_poll_requests?include=details&page[number]=1&page[limit]=15"
}
}
Allows getting Poll
with corresponding details.
🔒 Admin, poll result provider or poll owner signature is required if outcome
should be included.
id required | integer <int64> Example: 10 Unique identifier of a poll |
include | string Enum: "participation" "participation.votes" Relationships that may be used for the included parameter. |
poll exists
bad input parameter
either an invalid signature has been provided or a signer has not been authorized to access specified resources
poll does not exist
TokenD Developer Environment
{- "data": {
- "id": "10",
- "type": "polls",
- "relationships": {
- "result_provider": {
- "data": {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts"
}
}, - "owner": {
- "data": {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts"
}
}, - "participation": {
- "data": {
- "id": "10",
- "type": "poll-outcome"
}
}
}, - "attributes": {
- "permission_type": 4,
- "number_of_choices": 2,
- "start_time": "2012-11-01T22:08:41Z",
- "end_time": "2012-11-01T22:08:41Z",
- "vote_confirmation_required": true,
- "poll_state": {
- "value": 1,
- "name": "General"
}, - "poll_data": {
- "type": {
- "value": 1,
- "name": "General"
}
}, - "creator_details": { }
}
}, - "included": [ ]
}
Allows getting a filtered list of Polls
with corresponding details.
🔒 Depending on the case, different signatures are required:
if no filters are applied, admin signature is required.
if filter by owner is applied, signature of owner is required
filter[owner] | string <valid accountID> Example: filter[owner]=GAULFBQKQTFHHHZEIRMYVCGTY47FKWEW7P2BY2YT45HAEODAIJUJH23T Filters polls by specified owner id |
filter[result_provider] | string <valid accountID> Example: filter[result_provider]=GBULFBQKQTFHHHZEIRMYVCGTY47FKWEW7P2BY2YT45HAEODAIJUJH23E Filters polls by specified result provider id |
filter[permission_type] | any Filters polls by specified permission type |
filter[poll_type] | integer Example: filter[poll_type]=0 Filters polls by a specified poll type. Available poll types:
|
filter[vote_confirmation] | boolean Example: filter[vote_confirmation]=false Filters polls by |
filter[min_start_time] | string <date-time> Example: filter[min_start_time]=2012-10-30T22:08:41+00:00 Filters polls by a specified minimum start time of the poll. |
filter[min_end_time] | string <date-time> Example: filter[min_end_time]=2012-10-30T22:08:41+00:00 Filters polls by a specified minimum end time of the poll. |
filter[max_start_time] | string <date-time> Example: filter[max_start_time]=2012-10-30T22:08:41+00:00 Filters polls by a specified maximal start time of the poll. |
filter[max_end_time] | string <date-time> Example: filter[max_end_time]=2012-10-30T22:08:41+00:00 Filters polls by a specified maximal end time of the poll. |
filter[state] | integer Example: filter[state]=1 Filters polls by a specified poll state. Available poll states:
|
page[cursor] | integer >= 0 Cursor point to the end of the previous page |
page[limit] | integer [ 1 .. 100 ] Default: 15 Numbers of items per page to return. |
page[order] | string Default: "asc" Enum: "asc" "desc" Order of records on the page. If sortingParam is not specified, order of records is by default sorted by ID. |
polls exist
bad input parameter
either an invalid signature has been provided or a signer has not been authorized to access specified resources
TokenD Developer Environment
{- "data": [
- {
- "id": "10",
- "type": "polls",
- "relationships": {
- "result_provider": {
- "data": {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts"
}
}, - "owner": {
- "data": {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts"
}
}, - "participation": {
- "data": {
- "id": "10",
- "type": "poll-outcome"
}
}
}, - "attributes": {
- "permission_type": 4,
- "number_of_choices": 2,
- "start_time": "2012-11-01T22:08:41Z",
- "end_time": "2012-11-01T22:08:41Z",
- "vote_confirmation_required": true,
- "poll_state": {
- "value": 1,
- "name": "General"
}, - "poll_data": {
- "type": {
- "value": 1,
- "name": "General"
}
}, - "creator_details": { }
}
}
], - "included": [ ],
- "links": {
- "next": "/v3/polls?page[cursor]=2&page[limit]=15",
- "self": "/v3/polls?page[cursor]=1&page[limit]=15"
}
}
Allows getting Vote
with corresponding details.
🔒 Admin, voter, poll owner or poll result provider signature is required.
id required | integer <int64> Example: 10 Unique identifier of a poll |
voter required | string Example: GAULFBQKQTFHHHZEIRMYVCGTY47FKWEW7P2BY2YT45HAEODAIJUJH23T Unique identifier of a voter account |
include | string Value: "poll" Relationships that may be used for the included parameter. |
vote exist
bad input parameter
either an invalid signature has been provided or a signer has not been authorized to access specified resources
vote does not exist
TokenD Developer Environment
{- "data": {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "votes",
- "relationships": {
- "voter": {
- "data": {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts"
}
}, - "poll": {
- "data": {
- "id": "10",
- "type": "polls"
}
}
}, - "attributes": {
- "vote_data": {
- "poll_type": {
- "value": 1,
- "name": "General"
}, - "single_choice": 0,
- "custom_choice": { },
- "creation_time": "2023-03-24T16:50:57Z"
}
}
}, - "included": [
- {
- "id": "10",
- "type": "polls",
- "relationships": {
- "result_provider": {
- "data": {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts"
}
}, - "owner": {
- "data": {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts"
}
}, - "participation": {
- "data": {
- "id": "10",
- "type": "poll-outcome"
}
}
}, - "attributes": {
- "permission_type": 4,
- "number_of_choices": 2,
- "start_time": "2012-11-01T22:08:41Z",
- "end_time": "2012-11-01T22:08:41Z",
- "vote_confirmation_required": true,
- "poll_state": {
- "value": 1,
- "name": "General"
}, - "poll_data": {
- "type": {
- "value": 1,
- "name": "General"
}
}, - "creator_details": { }
}
}
]
}
Allows getting a filtered list of Votes
with corresponding details.
🔒 Admin or voter signature is required.
voter required | string Example: GA67BUDBYDGCVCL6EKPDAREG5IPLHSROF6QJX7MLS2BQJZJDO6FCZAKE address of voter account |
include | string Enum: "polls" "account" Relationships that may be used for the included parameter.
|
page[cursor] | integer >= 0 Cursor point to the end of the previous page |
page[limit] | integer [ 1 .. 100 ] Default: 15 Numbers of items per page to return. |
page[order] | string Default: "asc" Enum: "asc" "desc" Order of records on the page. If sortingParam is not specified, order of records is by default sorted by ID. |
votes exist
bad input parameter
either an invalid signature has been provided or a signer has not been authorized to access specified resources
TokenD Developer Environment
{- "data": [
- {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "votes",
- "relationships": {
- "voter": {
- "data": {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts"
}
}, - "poll": {
- "data": {
- "id": "10",
- "type": "polls"
}
}
}, - "attributes": {
- "vote_data": {
- "poll_type": {
- "value": 1,
- "name": "General"
}, - "single_choice": 0,
- "custom_choice": { },
- "creation_time": "2023-03-24T16:50:57Z"
}
}
}
], - "included": [
- {
- "id": "10",
- "type": "polls",
- "relationships": {
- "result_provider": {
- "data": {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts"
}
}, - "owner": {
- "data": {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts"
}
}, - "participation": {
- "data": {
- "id": "10",
- "type": "poll-outcome"
}
}
}, - "attributes": {
- "permission_type": 4,
- "number_of_choices": 2,
- "start_time": "2012-11-01T22:08:41Z",
- "end_time": "2012-11-01T22:08:41Z",
- "vote_confirmation_required": true,
- "poll_state": {
- "value": 1,
- "name": "General"
}, - "poll_data": {
- "type": {
- "value": 1,
- "name": "General"
}
}, - "creator_details": { }
}
}
], - "links": {
- "next": "/v3/votes/GA67BUDBYDGCVCL6EKPDAREG5IPLHSROF6QJX7MLS2BQJZJDO6FCZAKE?page[cursor]=22312312&page[limit]=15",
- "self": "/v3/votes/GA67BUDBYDGCVCL6EKPDAREG5IPLHSROF6QJX7MLS2BQJZJDO6FCZAKE?page[cursor]=12313123&page[limit]=15"
}
}
Allows getting a filtered list of Votes
with corresponding details.
🔒 Admin, poll result provider or poll owner signature is required.
id required | integer <int64> Example: 10 Unique identifier of a poll |
include | string Value: "poll" Relationships that may be used for the included parameter. |
page[cursor] | integer >= 0 Cursor point to the end of the previous page |
page[limit] | integer [ 1 .. 100 ] Default: 15 Numbers of items per page to return. |
page[order] | string Default: "asc" Enum: "asc" "desc" Order of records on the page. If sortingParam is not specified, order of records is by default sorted by ID. |
votes exist
bad input parameter
either an invalid signature has been provided or a signer has not been authorized to access specified resources
TokenD Developer Environment
{- "data": [
- {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "votes",
- "relationships": {
- "voter": {
- "data": {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts"
}
}, - "poll": {
- "data": {
- "id": "10",
- "type": "polls"
}
}
}, - "attributes": {
- "vote_data": {
- "poll_type": {
- "value": 1,
- "name": "General"
}, - "single_choice": 0,
- "custom_choice": { },
- "creation_time": "2023-03-24T16:50:57Z"
}
}
}
], - "included": [
- {
- "id": "10",
- "type": "polls",
- "relationships": {
- "result_provider": {
- "data": {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts"
}
}, - "owner": {
- "data": {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts"
}
}, - "participation": {
- "data": {
- "id": "10",
- "type": "poll-outcome"
}
}
}, - "attributes": {
- "permission_type": 4,
- "number_of_choices": 2,
- "start_time": "2012-11-01T22:08:41Z",
- "end_time": "2012-11-01T22:08:41Z",
- "vote_confirmation_required": true,
- "poll_state": {
- "value": 1,
- "name": "General"
}, - "poll_data": {
- "type": {
- "value": 1,
- "name": "General"
}
}, - "creator_details": { }
}
}
], - "links": {
- "next": "/v3/votes?page[cursor]=22312312&page[limit]=15",
- "self": "/v3/votes?page[cursor]=12313123&page[limit]=15"
}
}
Allows getting CreatePayment
request by ID
🔒 Requestor's or reviewer's signature is needed
filter[requestor] | string Filters requests by requestor - source of the operation. |
filter[reviewer] | string Filters requests by reviewer - account assigned to review requests. |
filter[state] | integer [ 1 .. 5 ] Filters requests by their state.
|
filter[pending_tasks] | integer Filters requests by existing tasks in pending tasks bit mask. Returns requests if all bits are set. |
filter[pending_tasks_not_set] | integer Filters requests by existing tasks in pending tasks bit mask. Returns requests if none of bits is set. |
filter[pending_tasks_any_of] | integer Filters requests by existing tasks in pending tasks bit mask. Returns requests if at least one bit is set. |
include | string Value: "request_details" Relationships that may be used for the included parameter. |
requests exist
bad input parameter
either an invalid signature has been provided or a signer has not been authorized to access specified resources
request does not exist
TokenD Developer Environment
{- "data": {
- "id": "12345",
- "type": "requests",
- "relationships": {
- "requestor": {
- "data": {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts"
}
}, - "reviewer": {
- "data": {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts"
}
}, - "request_details": {
- "data": {
- "id": "5",
- "type": "request-details-asset-create"
}
}
}, - "attributes": {
- "reject_reason": "source account underfunded",
- "hash": "13935d561f9ec54341243e6afaf0c8bf936928b07f6600204ba8ca550757d0a6",
- "all_tasks": 12,
- "pending_tasks": 2,
- "created_at": "2012-11-01T22:08:41+00:00",
- "updated_at": "2012-11-01T22:08:41+00:00",
- "state": "pending",
- "state_i": 0,
- "reference": "719111a51cfc5ad214e4e90ce6610f10e1cba165fd1bc9db73a031352b3bb61c",
- "external_details": { },
- "xdr_type": {
- "value": 1,
- "name": "General"
}
}
}, - "included": [
- {
- "id": "5",
- "type": "request-details-create-payment",
- "relationships": {
- "balance_from": {
- "id": "BDLXKLLVS6UIQEDYCZKIC5222GGQLCOTHM4BWXVCBDQMJTUWUFUATV2Q",
- "type": "balances"
}
}, - "attributes": {
- "creator_details": { },
- "source_fee": {
- "fixed": 486000000,
- "calculated_percent": 4000000
}, - "destination_fee": {
- "fixed": 486000000,
- "calculated_percent": 4000000
}, - "source_pay_for_destination": true,
- "amount": "13.123956",
- "reference": "string",
- "subject": "Dividends"
}
}
]
}
Allows getting a filtered list of CreatePayment
with details
🔒 Requestor's or reviewer's signature is needed
filter[requestor] | string Filters requests by requestor - source of the operation. |
filter[reviewer] | string Filters requests by reviewer - account assigned to review requests. |
filter[state] | integer [ 1 .. 5 ] Filters requests by their state.
|
filter[pending_tasks] | integer Filters requests by existing tasks in pending tasks bit mask. Returns requests if all bits are set. |
filter[pending_tasks_not_set] | integer Filters requests by existing tasks in pending tasks bit mask. Returns requests if none of bits is set. |
filter[pending_tasks_any_of] | integer Filters requests by existing tasks in pending tasks bit mask. Returns requests if at least one bit is set. |
include | string Value: "request_details" Relationships that may be used for the included parameter. |
requests exist
bad input parameter
either an invalid signature has been provided or a signer has not been authorized to access specified resources
request does not exist
TokenD Developer Environment
{- "data": {
- "id": "12345",
- "type": "requests",
- "relationships": {
- "requestor": {
- "data": {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts"
}
}, - "reviewer": {
- "data": {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts"
}
}, - "request_details": {
- "data": {
- "id": "5",
- "type": "request-details-asset-create"
}
}
}, - "attributes": {
- "reject_reason": "source account underfunded",
- "hash": "13935d561f9ec54341243e6afaf0c8bf936928b07f6600204ba8ca550757d0a6",
- "all_tasks": 12,
- "pending_tasks": 2,
- "created_at": "2012-11-01T22:08:41+00:00",
- "updated_at": "2012-11-01T22:08:41+00:00",
- "state": "pending",
- "state_i": 0,
- "reference": "719111a51cfc5ad214e4e90ce6610f10e1cba165fd1bc9db73a031352b3bb61c",
- "external_details": { },
- "xdr_type": {
- "value": 1,
- "name": "General"
}
}
}, - "included": [
- {
- "id": "5",
- "type": "request-details-create-payment",
- "relationships": {
- "balance_from": {
- "id": "BDLXKLLVS6UIQEDYCZKIC5222GGQLCOTHM4BWXVCBDQMJTUWUFUATV2Q",
- "type": "balances"
}
}, - "attributes": {
- "creator_details": { },
- "source_fee": {
- "fixed": 486000000,
- "calculated_percent": 4000000
}, - "destination_fee": {
- "fixed": 486000000,
- "calculated_percent": 4000000
}, - "source_pay_for_destination": true,
- "amount": "13.123956",
- "reference": "string",
- "subject": "Dividends"
}
}
]
}
Allows getting ManageOffer
requests by ID
🔒 Requestor's or reviewer's signature is needed
filter[requestor] | string Filters requests by requestor - source of the operation. |
filter[reviewer] | string Filters requests by reviewer - account assigned to review requests. |
filter[state] | integer [ 1 .. 5 ] Filters requests by their state.
|
filter[pending_tasks] | integer Filters requests by existing tasks in pending tasks bit mask. Returns requests if all bits are set. |
filter[pending_tasks_not_set] | integer Filters requests by existing tasks in pending tasks bit mask. Returns requests if none of bits is set. |
filter[pending_tasks_any_of] | integer Filters requests by existing tasks in pending tasks bit mask. Returns requests if at least one bit is set. |
include | string Value: "request_details" Relationships that may be used for the included parameter. |
requests exist
bad input parameter
either an invalid signature has been provided or a signer has not been authorized to access specified resources
request does not exist
TokenD Developer Environment
{- "data": {
- "id": "12345",
- "type": "requests",
- "relationships": {
- "requestor": {
- "data": {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts"
}
}, - "reviewer": {
- "data": {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts"
}
}, - "request_details": {
- "data": {
- "id": "5",
- "type": "request-details-asset-create"
}
}
}, - "attributes": {
- "reject_reason": "source account underfunded",
- "hash": "13935d561f9ec54341243e6afaf0c8bf936928b07f6600204ba8ca550757d0a6",
- "all_tasks": 12,
- "pending_tasks": 2,
- "created_at": "2012-11-01T22:08:41+00:00",
- "updated_at": "2012-11-01T22:08:41+00:00",
- "state": "pending",
- "state_i": 0,
- "reference": "719111a51cfc5ad214e4e90ce6610f10e1cba165fd1bc9db73a031352b3bb61c",
- "external_details": { },
- "xdr_type": {
- "value": 1,
- "name": "General"
}
}
}, - "included": [
- {
- "id": "5",
- "type": "request-details-manage-offer",
- "attributes": {
- "creator_details": { },
- "offer_id": 1,
- "order_book_id": 0,
- "base_amount": "1000.0",
- "price": "12.3",
- "is_buy": true,
- "fee": {
- "fixed": 486000000,
- "calculated_percent": 4000000
}
}
}
]
}
Allows getting a filtered list of ManageOffer
with details
🔒 Requestor's or reviewer's signature is needed
filter[requestor] | string Filters requests by requestor - source of the operation. |
filter[reviewer] | string Filters requests by reviewer - account assigned to review requests. |
filter[state] | integer [ 1 .. 5 ] Filters requests by their state.
|
filter[pending_tasks] | integer Filters requests by existing tasks in pending tasks bit mask. Returns requests if all bits are set. |
filter[pending_tasks_not_set] | integer Filters requests by existing tasks in pending tasks bit mask. Returns requests if none of bits is set. |
filter[pending_tasks_any_of] | integer Filters requests by existing tasks in pending tasks bit mask. Returns requests if at least one bit is set. |
include | string Value: "request_details" Relationships that may be used for the included parameter. |
requests exist
bad input parameter
either an invalid signature has been provided or a signer has not been authorized to access specified resources
request does not exist
TokenD Developer Environment
{- "data": {
- "id": "12345",
- "type": "requests",
- "relationships": {
- "requestor": {
- "data": {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts"
}
}, - "reviewer": {
- "data": {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts"
}
}, - "request_details": {
- "data": {
- "id": "5",
- "type": "request-details-asset-create"
}
}
}, - "attributes": {
- "reject_reason": "source account underfunded",
- "hash": "13935d561f9ec54341243e6afaf0c8bf936928b07f6600204ba8ca550757d0a6",
- "all_tasks": 12,
- "pending_tasks": 2,
- "created_at": "2012-11-01T22:08:41+00:00",
- "updated_at": "2012-11-01T22:08:41+00:00",
- "state": "pending",
- "state_i": 0,
- "reference": "719111a51cfc5ad214e4e90ce6610f10e1cba165fd1bc9db73a031352b3bb61c",
- "external_details": { },
- "xdr_type": {
- "value": 1,
- "name": "General"
}
}
}, - "included": [
- {
- "id": "5",
- "type": "request-details-manage-offer",
- "attributes": {
- "creator_details": { },
- "offer_id": 1,
- "order_book_id": 0,
- "base_amount": "1000.0",
- "price": "12.3",
- "is_buy": true,
- "fee": {
- "fixed": 486000000,
- "calculated_percent": 4000000
}
}
}
]
}
Allows getting ReviewableRequest
by ID
🔒 Requestor's or reviewer's signature is needed
include | string Value: "request_details" Relationships that may be used for the included parameter. |
requests exist
bad input parameter
either an invalid signature has been provided or a signer has not been authorized to access specified resources
request does not exist
TokenD Developer Environment
{- "data": [
- {
- "id": "12345",
- "type": "requests",
- "relationships": {
- "requestor": {
- "data": {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts"
}
}, - "reviewer": {
- "data": {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts"
}
}, - "request_details": {
- "data": {
- "id": "5",
- "type": "request-details-asset-create"
}
}
}, - "attributes": {
- "reject_reason": "source account underfunded",
- "hash": "13935d561f9ec54341243e6afaf0c8bf936928b07f6600204ba8ca550757d0a6",
- "all_tasks": 12,
- "pending_tasks": 2,
- "created_at": "2012-11-01T22:08:41+00:00",
- "updated_at": "2012-11-01T22:08:41+00:00",
- "state": "pending",
- "state_i": 0,
- "reference": "719111a51cfc5ad214e4e90ce6610f10e1cba165fd1bc9db73a031352b3bb61c",
- "external_details": { },
- "xdr_type": {
- "value": 1,
- "name": "General"
}
}
}
], - "included": {
- "id": "5",
- "type": "request-details-asset-create",
- "relationships": {
- "asset": {
- "data": {
- "id": "USD",
- "type": "assets"
}
}
}, - "attributes": {
- "asset": "USD",
- "type": 1,
- "policies": 12,
- "pre_issuance_asset_signer": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "max_issuance_amount": "1000.123456",
- "initial_preissued_amount": "1000.123456",
- "trailing_digits_count": 2,
- "creator_details": { }
}
}
}
Allows getting a filtered list of ReviewableRequest
with details
🔒 Requestor's or reviewer's signature is needed
filter[requestor] | string Filters requests by requestor - source of the operation. |
filter[reviewer] | string Filters requests by reviewer - account assigned to review requests. |
filter[state] | integer [ 1 .. 5 ] Filters requests by their state.
|
filter[type] | integer [ 2 .. 17 ] Filters requests by their type.
|
filter[pending_tasks] | integer Filters requests by existing tasks in pending tasks bit mask. Returns requests if all bits are set. |
filter[pending_tasks_not_set] | integer Filters requests by existing tasks in pending tasks bit mask. Returns requests if none of bits is set. |
filter[pending_tasks_any_of] | integer Filters requests by existing tasks in pending tasks bit mask. Returns requests if at least one bit is set. |
filter[all_tasks] | integer Filters requests by existing tasks in |
filter[all_tasks_not_set] | integer Filters requests by existing tasks in |
filter[all_tasks_any_of] | integer Filters requests by existing tasks in |
filter[created_before] | integer <UTC Unix Timestamp> Filters requests by creation timestamp earlier than passed value in filter (exclusively). |
filter[updated_before] | integer <UTC Unix Timestamp> Filters requests by update timestamp earlier than passed value in filter (exclusively). |
include | string Value: "request_details" Relationships that may be used for the included parameter. |
page[number] | integer >= 0 Page number to return. |
page[limit] | integer [ 1 .. 100 ] Default: 15 Numbers of items per page to return. |
page[order] | string Default: "asc" Enum: "asc" "desc" Order of records on the page. If sortingParam is not specified, order of records is by default sorted by ID. |
requests exist
bad input parameter
either an invalid signature has been provided or a signer has not been authorized to access specified resources
requests do not exist
TokenD Developer Environment
{- "data": [
- {
- "id": "12345",
- "type": "requests",
- "relationships": {
- "requestor": {
- "data": {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts"
}
}, - "reviewer": {
- "data": {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts"
}
}, - "request_details": {
- "data": {
- "id": "5",
- "type": "request-details-asset-create"
}
}
}, - "attributes": {
- "reject_reason": "source account underfunded",
- "hash": "13935d561f9ec54341243e6afaf0c8bf936928b07f6600204ba8ca550757d0a6",
- "all_tasks": 12,
- "pending_tasks": 2,
- "created_at": "2012-11-01T22:08:41+00:00",
- "updated_at": "2012-11-01T22:08:41+00:00",
- "state": "pending",
- "state_i": 0,
- "reference": "719111a51cfc5ad214e4e90ce6610f10e1cba165fd1bc9db73a031352b3bb61c",
- "external_details": { },
- "xdr_type": {
- "value": 1,
- "name": "General"
}
}
}
], - "included": [
- {
- "id": "5",
- "type": "request-details-asset-create",
- "relationships": {
- "asset": {
- "data": {
- "id": "USD",
- "type": "assets"
}
}
}, - "attributes": {
- "asset": "USD",
- "type": 1,
- "policies": 12,
- "pre_issuance_asset_signer": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "max_issuance_amount": "1000.123456",
- "initial_preissued_amount": "1000.123456",
- "trailing_digits_count": 2,
- "creator_details": { }
}
}
], - "links": {
- "next": "/v3/requests?include=details&page[number]=2&page[limit]=15",
- "self": "/v3/requests?include=details&page[number]=1&page[limit]=15"
}
}
Allows to get a filtered list of participants effects
filter[effect] | string Filter by effect type |
filter[account] | string Filters history by participant account address |
filter[balance] | string Filters history by participant's balance |
filter[asset] | string Filters history by involved asset |
include | string Enum: "effect" "operation" "operation.details" "asset" Relationships may be used for the included parameter. |
page[number] | integer >= 0 Page number to return. |
page[limit] | integer [ 1 .. 100 ] Default: 15 Numbers of items per page to return. |
page[order] | string Default: "asc" Enum: "asc" "desc" Order of records on the page. If sortingParam is not specified, order of records is by default sorted by ID. |
history exists
bad input parameter
effects do not exist
TokenD Developer Environment
{- "data": [
- {
- "id": "lkasjdlkasjd",
- "type": "participant-effects",
- "relationships": {
- "account": {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts"
}, - "balance": {
- "id": "BDLXKLLVS6UIQEDYCZKIC5222GGQLCOTHM4BWXVCBDQMJTUWUFUATV2Q",
- "type": "balances"
}, - "asset": {
- "id": "USD",
- "type": "assets"
}, - "operation": {
- "id": "17179869186",
- "type": "operations"
}, - "effect": {
- "id": "123",
- "type": "effects-funded"
}
}
}
], - "included": [
- {
- "id": "17179869186",
- "type": "operations",
- "relationships": {
- "tx": {
- "id": "17179869186",
- "type": "transactions"
}, - "source": {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts"
}, - "details": {
- "id": "123",
- "type": "operations-create-account"
}
}, - "attributes": {
- "applied_at": "2012-11-01T22:08:41+00:00"
}
}
], - "links": {
- "next": "/v3/history?include=operation.details&page[number]=2&page[limit]=15",
- "self": "/v3/history?include=operation.details&page[number]=1&page[limit]=15"
}
}
Allows to get a filtered list of participants effects related to balances only - movements
🔒 Permissions:
Filters | Signature |
---|---|
- | admin |
filter[asset] |
admin or asset owner |
filter[balance] , filter[account] |
admin or account owner |
filter[account] | string Filters movements by participant account address |
filter[balance] | string Filters movements by participant's balance |
filter[asset] | string Filters movements by involved asset |
include | string Enum: "effect" "operation" "operation.details" "asset" Relationships may be used for the included parameter. |
page[number] | integer >= 0 Page number to return. |
page[limit] | integer [ 1 .. 100 ] Default: 15 Numbers of items per page to return. |
page[order] | string Default: "asc" Enum: "asc" "desc" Order of records on the page. If sortingParam is not specified, order of records is by default sorted by ID. |
movements exist
bad input parameter
operations do not exist
TokenD Developer Environment
{- "data": [
- {
- "id": "lkasjdlkasjd",
- "type": "participant-effects",
- "relationships": {
- "account": {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts"
}, - "balance": {
- "id": "BDLXKLLVS6UIQEDYCZKIC5222GGQLCOTHM4BWXVCBDQMJTUWUFUATV2Q",
- "type": "balances"
}, - "asset": {
- "id": "USD",
- "type": "assets"
}, - "operation": {
- "id": "17179869186",
- "type": "operations"
}, - "effect": {
- "id": "123",
- "type": "effects-funded"
}
}
}
], - "included": [
- {
- "id": "17179869186",
- "type": "operations",
- "relationships": {
- "tx": {
- "id": "17179869186",
- "type": "transactions"
}, - "source": {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts"
}, - "details": {
- "id": "123",
- "type": "operations-create-account"
}
}, - "attributes": {
- "applied_at": "2012-11-01T22:08:41+00:00"
}
}
], - "links": {
- "next": "/v3/movements?include=operation.details&page[number]=2&page[limit]=15",
- "self": "/v3/movements?include=operation.details&page[number]=1&page[limit]=15"
}
}
Allows to get operation
🔒 Admin account's signature is required.
include | string Value: "operation.details" Relationships may be used for the included parameter. |
operations exist
bad input parameter
either an invalid signature has been provided or a signer has not been authorized to access specified resources
does not exist
TokenD Developer Environment
{- "data": {
- "id": "17179869186",
- "type": "operations",
- "relationships": {
- "tx": {
- "id": "17179869186",
- "type": "transactions"
}, - "source": {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts"
}, - "details": {
- "id": "123",
- "type": "operations-create-account"
}
}, - "attributes": {
- "applied_at": "2012-11-01T22:08:41+00:00"
}
}, - "included": [
- {
- "id": "123",
- "type": "operations-create-account",
- "relationships": {
- "account": {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts"
}, - "role": {
- "id": "4581",
- "type": "account-roles"
}
}
}
]
}
Allows to get a filtered list of operations
🔒 Admin account's signature is required.
filter[types] | integer [ 2 .. 55 ] Filters operations by types (comma-separated multiple values are supported). All operation types can be found here |
filter[source] | string Filters operations by source account id. |
include | string Value: "operation.details" Relationships may be used for the included parameter. |
page[cursor] | integer >= 0 Cursor point to the end of the previous page |
page[limit] | integer [ 1 .. 100 ] Default: 15 Numbers of items per page to return. |
page[order] | string Default: "asc" Enum: "asc" "desc" Order of records on the page. If sortingParam is not specified, order of records is by default sorted by ID. |
operations exist
bad input parameter
either an invalid signature has been provided or a signer has not been authorized to access specified resources
TokenD Developer Environment
{- "data": [
- {
- "id": "17179869186",
- "type": "operations",
- "relationships": {
- "tx": {
- "id": "17179869186",
- "type": "transactions"
}, - "source": {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts"
}, - "details": {
- "id": "123",
- "type": "operations-create-account"
}
}, - "attributes": {
- "applied_at": "2012-11-01T22:08:41+00:00"
}
}
], - "included": [
- {
- "id": "123",
- "type": "operations-create-account",
- "relationships": {
- "account": {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts"
}, - "role": {
- "id": "4581",
- "type": "account-roles"
}
}
}
], - "links": {
- "next": "/v3/operations?page[cursor]=2&page[limit]=15",
- "self": "/v3/operations?page[limit]=15"
}
}
Allows to get transaction by ID or Hash
🔒 Admin account's signature is required.
id required | string ID or Hash of the transaction |
include | string Value: "ledger_entry_changes" Relationships may be used for the included parameter. |
transaction exists
bad input parameter
either an invalid signature has been provided or a signer has not been authorized to access specified resources
such transaction does not exist
TokenD Developer Environment
{- "data": {
- "id": "17179869186",
- "type": "transactions",
- "attributes": {
- "hash": "575a8bad0a67378029c778d92eb5367136e89530830ed8275ff20ac80160a80d",
- "ledger_sequence": 4,
- "created_at": "2019-03-04T18:42:15Z",
- "envelope_xdr": "AAAAAEHCX5tmu0fXlkE9GLIOLO185ih5QI7V+PZ1mtb1tnzSA59veKFdUjsAAAAAAAAAAAAAAABchp31A...",
- "result_xdr": "AAAAAAAAAAAAAAAAAAAAAQAAAAAAAAALAAAAAAAAAAAAAAABAAAAAQAAAAAAAAAA",
- "result_meta_xdr": "AAAAAAAAAAEAAAAMAAAAAwAAAAEAAAAaAAAAAAAAAAEAAAABAAAAAAAAAAEAAAACe30AAAAAAAAAAAAAAAAAAwAAAA..."
}, - "relationships": {
- "operations": [
- {
- "id": "17179869186",
- "type": "operations"
}
], - "source": {
- "data": {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts"
}
}, - "ledger_entry_changes": [
- {
- "id": "17179869186:17179869186:0",
- "type": "ledger-entry-changes"
}
]
}
}, - "included": [
- {
- "id": "17179869186:17179869186:0",
- "type": "ledger-entry-changes",
- "attributes": {
- "change_type": 0,
- "entry_type": 3,
- "payload": "AAAAAwAAAAEAAAAaAAAAAAAAAAEAAAABAAAAAAAAAAEAAAACe30AAAAAAAAAAAAA"
}
}
]
}
Allows to get a filtered list of transactionsa
🔒 Admin account's signature is required.
filter[ledger_entry_changes.entry_types] | integer [ 2 .. 35 ] Filters transactions by ledger entry type they affected (comma-separated multiple values are supported):
|
filter[ledger_entry_changes.change_types] | integer [ 0 .. 3 ] description: | Filters transactions by ledger entry change type they performed (comma-separated multiple values are supported):
|
include | string Value: "ledger_entry_changes" Relationships may be used for the included parameter. |
page[cursor] | integer >= 0 Cursor point to the end of the previous page |
page[limit] | integer [ 1 .. 100 ] Default: 15 Numbers of items per page to return. |
page[order] | string Default: "asc" Enum: "asc" "desc" Order of records on the page. If sortingParam is not specified, order of records is by default sorted by ID. |
transactions exist
bad input parameter
either an invalid signature has been provided or a signer has not been authorized to access specified resources
TokenD Developer Environment
{- "data": [
- {
- "id": "17179869186",
- "type": "transactions",
- "attributes": {
- "hash": "575a8bad0a67378029c778d92eb5367136e89530830ed8275ff20ac80160a80d",
- "ledger_sequence": 4,
- "created_at": "2019-03-04T18:42:15Z",
- "envelope_xdr": "AAAAAEHCX5tmu0fXlkE9GLIOLO185ih5QI7V+PZ1mtb1tnzSA59veKFdUjsAAAAAAAAAAAAAAABchp31A...",
- "result_xdr": "AAAAAAAAAAAAAAAAAAAAAQAAAAAAAAALAAAAAAAAAAAAAAABAAAAAQAAAAAAAAAA",
- "result_meta_xdr": "AAAAAAAAAAEAAAAMAAAAAwAAAAEAAAAaAAAAAAAAAAEAAAABAAAAAAAAAAEAAAACe30AAAAAAAAAAAAAAAAAAwAAAA..."
}, - "relationships": {
- "operations": [
- {
- "id": "17179869186",
- "type": "operations"
}
], - "source": {
- "data": {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts"
}
}, - "ledger_entry_changes": [
- {
- "id": "17179869186:17179869186:0",
- "type": "ledger-entry-changes"
}
]
}
}
], - "included": [
- {
- "id": "17179869186:17179869186:0",
- "type": "ledger-entry-changes",
- "attributes": {
- "change_type": 0,
- "entry_type": 3,
- "payload": "AAAAAwAAAAEAAAAaAAAAAAAAAAEAAAABAAAAAAAAAAEAAAACe30AAAAAAAAAAAAA"
}
}
], - "links": {
- "next": "/v3/transactions?include=ledger_entry_changes&page[cursor]=2&page[limit]=15",
- "self": "/v3/transactions?include=ledger_entry_changes&page[cursor]=1&page[limit]=15"
}
}
Returns the requested public key with accounts that have signer with such public key
🔒 Admins or public key owner signature is needed
id required | string ID of entry (the public key itself) |
public key entry exists
bad input parameter
either an invalid signature has been provided or a signer has not been authorized to access specified resources
public key entry not found
TokenD Developer Environment
{- "data": {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "public-key-entries",
- "relationships": {
- "accounts": {
- "data": [
- {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts"
}
]
}
}
}, - "included": [ ]
}
Allows getting basic info about horizon
succesfully retrieved page
server overloaded
TokenD Developer Environment
{- "ledger_state": {
- "core": {
- "latest": 0,
- "oldest_on_start": 0,
- "last_ledger_increase_time": "2023-03-24T16:50:57Z"
}, - "history": {
- "latest": 0,
- "oldest_on_start": 0,
- "last_ledger_increase_time": "2023-03-24T16:50:57Z"
}, - "history_2": {
- "latest": 0,
- "oldest_on_start": 0,
- "last_ledger_increase_time": "2023-03-24T16:50:57Z"
}
}, - "network_passphrase": "example network passphrase",
- "admin_account_id": "GBA4EX43M25UPV4WIE6RRMQOFTWXZZRIPFAI5VPY6Z2ZVVXVWZ6NEOOB",
- "master_exchange_name": "TokenD",
- "tx_expiration_period": 0,
- "current_time": 0,
- "precision": 0,
- "xdr_revision": "7e0659466026577a3ea90ff178773fecc4a85dec"
}
Allows getting basic info about horizon state and it's dependensies
succesfully retrieved state
server overloaded
TokenD Developer Environment
{- "id": "2019-03-04T18:42:15Z",
- "type": "horizon-state",
- "attributes": {
- "core": {
- "latest": 134,
- "oldest_on_start": 12,
- "last_ledger_increase_time": "2019-03-04T18:42:15Z"
}, - "history": {
- "latest": 134,
- "oldest_on_start": 12,
- "last_ledger_increase_time": "2019-03-04T18:42:15Z"
}, - "history_v2": {
- "latest": 134,
- "oldest_on_start": 12,
- "last_ledger_increase_time": "2019-03-04T18:42:15Z"
}, - "network_passphrase": "TokenD REIT Network!",
- "master_account_id": "GBA4EX43M25UPV4WIE6RRMQOFTWXZZRIPFAI5VPY6Z2ZVVXVWZ6NEOOB",
- "environment_name": "REIT",
- "tx_expiration_period": 0,
- "current_time": "2019-03-04T18:42:15Z",
- "current_time_unix": 0,
- "precision": 6,
- "xdr_revision": "7e0659466026577a3ea90ff178773fecc4a85dec",
- "core_version": "string"
}
}
Allows to submit transaction to the network
tx required | string base-64 encoded XDR representation of transaction itself |
wait_for_ingest | boolean Default: false defines whether to wait for ingest of transaction or not |
wait_for_result | boolean Default: true EXPERIMENTAL: defines whether we need to wait for result of transaction or not. NOTE: it is not allowed to set |
successfully submitted
bad input parameter
request has timed out
internal server error
TokenD Developer Environment
{- "tx": "AAAAAEHCX5tmu0fXlkE9GLIOLO185ih5QI7V+PZ1mtb1tnzSA59veKFdUjsAAAAAAAAAAAAAAABchp31A...",
- "wait_for_ingest": false,
- "wait_for_result": true
}
{- "data": {
- "id": "17179869186",
- "type": "transactions",
- "attributes": {
- "hash": "575a8bad0a67378029c778d92eb5367136e89530830ed8275ff20ac80160a80d",
- "ledger_sequence": 4,
- "created_at": "2019-03-04T18:42:15Z",
- "envelope_xdr": "AAAAAEHCX5tmu0fXlkE9GLIOLO185ih5QI7V+PZ1mtb1tnzSA59veKFdUjsAAAAAAAAAAAAAAABchp31A...",
- "result_xdr": "AAAAAAAAAAAAAAAAAAAAAQAAAAAAAAALAAAAAAAAAAAAAAABAAAAAQAAAAAAAAAA",
- "result_meta_xdr": "AAAAAAAAAAEAAAAMAAAAAwAAAAEAAAAaAAAAAAAAAAEAAAABAAAAAAAAAAEAAAACe30AAAAAAAAAAAAAAAAAAwAAAA..."
}, - "relationships": {
- "operations": [
- {
- "id": "17179869186",
- "type": "operations"
}
], - "source": {
- "data": {
- "id": "GBSR6JG5AYSAW7HK6EGJFYVIVN54LVGSY3ZLJ6X3IBQZ766EJABCZQTH",
- "type": "accounts"
}
}, - "ledger_entry_changes": [
- {
- "id": "17179869186:17179869186:0",
- "type": "ledger-entry-changes"
}
]
}
}
}