Get pending txs

流量控制: 每 秒

摘要


HTTP 方法

GET

访问路径

/api/v3/block/getPendingRequests

功能

Get pending txs to be packed into next block

API 描述


HTTP头

字段 类型 必须 说明 举例
X-API-KEY string ApiKey "HlkcGxbqBeaF76j4rvPaOasyfPwnkQ
6B6DQ6THZWbvrAGxzEdulXQvOKLrRW
ZLnN"

请求参数

请求示例

HTTP
CURL
GET https://api3.loopring.io/api/v3/block/getPendingRequests HTTP/1.1
Host: api3.loopring.io
Connection: keep-alive
Accept: */*
Accept-Encoding: gzip, deflate, br
Accept-Language: zh,en;q=0.9
X-API-KEY: sra1aavfa
curl -H "X-API-KEY:sra1aavfa" https://api3.loopring.io/api/v3/block/getPendingRequests

响应字段

字段 类型 必须 说明 举例
txType string The txType of the transaction, one in [Noop,Deposit,Withdraw,Transfer,SpotTrade,AccountUpdate,AmmUpdate,JoinAmm,ExitAmm,SignatureVerification,NftMint,NftData]
取值范围 : ['Noop', 'Deposit', 'Withdraw', 'Transfer', 'SpotTrade', 'AccountUpdate', 'AmmUpdate', 'JoinAmm', 'ExitAmm', 'SignatureVerification', 'NftMint', 'NftData']
"transfer"
accountId integer The accountId of the transaction 10006
owner string The owner of the transaction "0xbbbbca6a90
1c926f240b89
eacb641d8aec
7aeafd"
token _Token The token info of the transaction /
toToken _Token The toToken info of the transaction if the tx has destination tokenId /
fee _Token The fee of the transaction /
validUntil integer The validUntil of the transaction 1627904776
toAccountId integer The toAccountId of the transaction if tx has a destination account 10006
toAccountAddress string The toAccountAddress of the transaction if tx has a destination account "0xbbbbca6a90
1c926f240b89
eacb641d8aec
7aeafd"
storageId integer The storageId of the transaction 2
orderA _Order The orderA of the transaction if tx is SpotTrade /
orderB _Order The orderB of the transaction if tx is SpotTrade /
valid boolean The validness of the transaction "false"
nonce integer The nonce of the transaction if it uses nonce 65
minterAccountId integer The minterAccountId of the transaction if its a mint tx 10008
minter string The minter of the transaction if its a mint tx "0xbbbbca6a90
1c926f240b89
eacb641d8aec
7aeafd"
nftToken _Token The nftToken of the transaction if its a NFT related tx /
nftType string The nftType of the transaction if its a mint tx "eip1155"
fromAddress string field.TransactionBlock.fromAddress "0xbbbbca6a90
1c926f240b89
eacb641d8aec
7aeafd"
toAddress string field.TransactionBlock.toAddress "0xbbbbca6a90
1c926f240b89
eacb641d8aec
7aeafd"

响应示例

{
  "txType" : "transfer",
  "accountId" : 10006,
  "owner" : "0xbbbbca6a901c926f240b89eacb641d8aec7aeafd",
  "token" : {
    "tokenId" : 6,
    "tokenAddress" : "0xbbbbca6a901c926f240b89eacb641d8aec7aeafd",
    "nftData" : "0xf7c932351186c3a9053f313eefa16209c018f7f1dba8aa8ca7100400f7c31085",
    "nftId" : "0xf7c932351186c3a9053f313eefa16209c018f7f1dba8aa8ca7100400f7c31085",
    "amount" : "100"
  },
  "toToken" : {
    "tokenId" : 6,
    "tokenAddress" : "0xbbbbca6a901c926f240b89eacb641d8aec7aeafd",
    "nftData" : "0xf7c932351186c3a9053f313eefa16209c018f7f1dba8aa8ca7100400f7c31085",
    "nftId" : "0xf7c932351186c3a9053f313eefa16209c018f7f1dba8aa8ca7100400f7c31085",
    "amount" : "100"
  },
  "fee" : {
    "tokenId" : 6,
    "tokenAddress" : "0xbbbbca6a901c926f240b89eacb641d8aec7aeafd",
    "nftData" : "0xf7c932351186c3a9053f313eefa16209c018f7f1dba8aa8ca7100400f7c31085",
    "nftId" : "0xf7c932351186c3a9053f313eefa16209c018f7f1dba8aa8ca7100400f7c31085",
    "amount" : "100"
  },
  "validUntil" : 1627904776,
  "toAccountId" : 10006,
  "toAccountAddress" : "0xbbbbca6a901c926f240b89eacb641d8aec7aeafd",
  "storageId" : 2,
  "orderA" : {
    "storageID" : 6,
    "accountID" : 10006,
    "amountS" : "100",
    "amountB" : "600",
    "tokenS" : 6,
    "tokenB" : 32768,
    "validUntil" : 1235123512,
    "taker" : "0xf7c932351186c3a9053f313eefa16209c018f7f1dba8aa8ca7100400f7c31085",
    "feeBips" : 60,
    "isAmm" : true,
    "nftData" : "0xf7c932351186c3a9053f313eefa16209c018f7f1dba8aa8ca7100400f7c31085",
    "fillS" : 500
  },
  "orderB" : {
    "storageID" : 6,
    "accountID" : 10006,
    "amountS" : "100",
    "amountB" : "600",
    "tokenS" : 6,
    "tokenB" : 32768,
    "validUntil" : 1235123512,
    "taker" : "0xf7c932351186c3a9053f313eefa16209c018f7f1dba8aa8ca7100400f7c31085",
    "feeBips" : 60,
    "isAmm" : true,
    "nftData" : "0xf7c932351186c3a9053f313eefa16209c018f7f1dba8aa8ca7100400f7c31085",
    "fillS" : 500
  },
  "valid" : false,
  "nonce" : 65,
  "minterAccountId" : 10008,
  "minter" : "0xbbbbca6a901c926f240b89eacb641d8aec7aeafd",
  "nftToken" : {
    "tokenId" : 6,
    "tokenAddress" : "0xbbbbca6a901c926f240b89eacb641d8aec7aeafd",
    "nftData" : "0xf7c932351186c3a9053f313eefa16209c018f7f1dba8aa8ca7100400f7c31085",
    "nftId" : "0xf7c932351186c3a9053f313eefa16209c018f7f1dba8aa8ca7100400f7c31085",
    "amount" : "100"
  },
  "nftType" : "eip1155",
  "fromAddress" : "0xbbbbca6a901c926f240b89eacb641d8aec7aeafd",
  "toAddress" : "0xbbbbca6a901c926f240b89eacb641d8aec7aeafd"
}

状态码

状态码 描述
100000 Unknown error

模型


_Token

字段 类型 必须 说明 举例
tokenId Result
Info
The tokenId of the token "6"
tokenAddress string The token Address "0xbbbbca6a90
1c926f240b89
eacb641d8aec
7aeafd"
nftData string The nftData of the NFT token "0xf7c9323511
86c3a9053f31
3eefa16209c0
18f7f1dba8aa
8ca7100400f7
c31085"
nftId string The NFT_ID of the NFT token "0xf7c9323511
86c3a9053f31
3eefa16209c0
18f7f1dba8aa
8ca7100400f7
c31085"
amount string The token amount "100"

_Order

字段 类型 必须 说明 举例
storageID integer The storageId of the order 6
accountID integer The accountID of the order 10006
amountS string The amountS of the order "100"
amountB string The amountB of the order "600"
tokenS integer The tokenS of the order 6
tokenB integer The tokenB of the order 32768
validUntil integer The validUntil of the order 1235123512
taker string The taker of the order "0xf7c9323511
86c3a9053f31
3eefa16209c0
18f7f1dba8aa
8ca7100400f7
c31085"
feeBips integer The feeBips of the order 60
isAmm boolean If the order isAmm "true"
nftData string The nftData of the order, if its NFT order "0xf7c9323511
86c3a9053f31
3eefa16209c0
18f7f1dba8aa
8ca7100400f7
c31085"
fillS integer The fillS of the order 500

results matching ""

    No results matching ""