Get pending transactions

Get pending txs to be packed into the next block

EndPoint

GET api/v3/block/getPendingRequests

Request

None

Response

Model

Token

Order

Sample code

Request

GET api/v3/block/getPendingRequests
https://uat2.loopring.io/api/v3/block/getPendingRequests

Response

[{
	"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 updated