Get pending txs
Get pending txs to be packed into the next block
GET api/v3/block/getPendingRequests
Field | Description | Example |
---|---|---|
X-API-KEY | ApiKey | "HlkcGxbqBeaF76j4rvPaOasyfPwnkQ6B6DQ6THZWbvrAGxzEdulXQvOKLrRWZLnN" |
None
Field | Description | Example |
---|---|---|
txType | The txType of the transaction, one in [Noop,Deposit,Withdraw,Transfer,SpotTrade,AccountUpdate,AmmUpdate,JoinAmm,ExitAmm,SignatureVerification,NftMint,NftData]
Allowable : ['Noop', 'Deposit', 'Withdraw', 'Transfer', 'SpotTrade', 'AccountUpdate', 'AmmUpdate', 'JoinAmm', 'ExitAmm', 'SignatureVerification', 'NftMint', 'NftData'] | "transfer" |
accountId | [Optional] The accountId of the transaction | 10006 |
owner | [Optional] The owner of the transaction | "0xbbbbca6a901c926f240b89eacb641d8aec7aeafd" |
token | / | |
toToken | / | |
fee | / | |
validUntil | [Optional] The validUntil of the transaction | 1627904776 |
toAccountId | [Optional] The toAccountId of the transaction if tx has a destination account | 10006 |
toAccountAddress | [Optional] The toAccountAddress of the transaction if tx has a destination account | "0xbbbbca6a901c926f240b89eacb641d8aec7aeafd" |
storageId | [Optional] The storageId of the transaction | 2 |
orderA | / | |
orderB | / | |
valid | [Optional] The validness of the transaction | "false" |
nonce | [Optional] The nonce of the transaction if it uses nonce | 65 |
minterAccountId | [Optional] The minterAccountId of the transaction if its a mint tx | 10008 |
minter | [Optional] The minter of the transaction if its a mint tx | "0xbbbbca6a901c926f240b89eacb641d8aec7aeafd" |
nftToken | [Optional] The nftToken of the transaction if its a NFT related tx | / |
nftType | [Optional] The nftType of the transaction if its a mint tx | "EIP1155" |
fromAddress | [Optional] from address | "0xbbbbca6a901c926f240b89eacb641d8aec7aeafd" |
toAddress | [Optional] to address | "0xbbbbca6a901c926f240b89eacb641d8aec7aeafd" |
Field | Description | Example |
---|---|---|
tokenId | [Optional] The tokenId of the token | "6" |
tokenAddress | [Optional] The token Address | "0xbbbbca6a901c926f240b89eacb641d8aec7aeafd" |
nftData | [Optional] The nftData of the NFT token | "0xf7c932351186c3a9053f313eefa16209c018f7f1dba8aa8ca7100400f7c31085" |
nftId | [Optional] The NFT_ID of the NFT token | "0xf7c932351186c3a9053f313eefa16209c018f7f1dba8aa8ca7100400f7c31085" |
amount | [Optional] The token amount | "100" |
Field | Description | Example |
---|---|---|
storageID | The storageId of the order | 6 |
accountID | The accountID of the order | 10006 |
amountS | The amountS of the order | "100" |
amountB | The amountB of the order | "600" |
tokenS | The tokenS of the order | 6 |
tokenB | The tokenB of the order | 32768 |
validUntil | The validUntil of the order | 1235123512 |
taker | The taker of the order | "0xbbbbca6a901c926f240b89eacb641d8aec7aeafd" |
feeBips | The feeBips of the order | 60 |
isAmm | If the order isAmm | "true" |
nftData | The nftData of the order, if its NFT order | "0xbbbbca6a901c926f240b89eacb641d8aec7aeafd" |
fillS | The fillS of the order | 500 |
GET
api/v3/block/getPendingRequests
https://uat2.loopring.io/api/v3/block/getPendingRequests
[{
"txType": "SpotTrade",
"orderA": {
"storageID": 16,
"accountID": 88240,
"amountS": "24555248000000000000000",
"amountB": "12487500000",
"tokenS": 1,
"tokenB": 6,
"validUntil": 1658444756,
"taker": "",
"feeBips": 10,
"isAmm": false,
"nftData": "",
"fillS": 9158448
},
"orderB": {
"storageID": 526024,
"accountID": 108,
"amountS": "12489000000",
"amountB": "24555200000000000000000",
"tokenS": 6,
"tokenB": 1,
"validUntil": 2147483647,
"taker": "",
"feeBips": 0,
"isAmm": true,
"nftData": "",
"fillS": 2746330
},
"valid": true
}, {
"txType": "Transfer",
"accountId": 61279,
"token": {
"tokenId": 32980,
"nftData": "0x002c471c82f1912eb3b3aff8c8b509c2126861bab0444533dbc17c06704f2235",
"amount": "1"
},
"toToken": {
"tokenId": 32899
},
"fee": {
"tokenId": 1,
"amount": "80900000000000000"
},
"validUntil": 1658444653,
"toAccountId": 109068,
"toAccountAddress": "0xd319373c55864b48e9edd03c08bade589443eff4",
"storageId": 25
}]
Last modified 7mo ago