Loading...
Loading...
Compare original and translation side by side
0x4bBFD120d9f352A0BEd7a014bd67913a2007a8780x4bBFD120d9f352A0BEd7a014bd67913a2007a878yoink()yoink()curl -s -X POST https://mainnet.base.org -H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","method":"eth_call","params":[{"to":"0x4bBFD120d9f352A0BEd7a014bd67913a2007a878","data":"SELECTOR+PARAMS"},"latest"],"id":1}' | jq -r '.result'| Function | Selector | Params | Returns |
|---|---|---|---|
| | - | (write) |
| | - | address |
| | - | uint256 timestamp |
| | - | uint256 |
| | - | address (trophy holder) |
| | - | uint256 (record) |
| | - | uint256 (600) |
| | addr (32B padded) | (yoinks, time, lastYoinkedAt) |
| | addr + tokenId | uint256 (FLAG_ID=1, TROPHY_ID=2) |
score()curl -s -X POST https://mainnet.base.org -H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","method":"eth_call","params":[{"to":"0x4bBFD120d9f352A0BEd7a014bd67913a2007a878","data":"SELECTOR+PARAMS"},"latest"],"id":1}' | jq -r '.result'| 函数 | 选择器 | 参数 | 返回值 |
|---|---|---|---|
| | - | (写入型) |
| | - | address |
| | - | uint256 时间戳 |
| | - | uint256 |
| | - | address(奖杯持有者) |
| | - | uint256(记录值) |
| | - | uint256(600) |
| | addr(32字节填充) | (yoinks, time, lastYoinkedAt) |
| | addr + tokenId | uint256(FLAG_ID=1,TROPHY_ID=2) |
score(){
"to": "0x4bBFD120d9f352A0BEd7a014bd67913a2007a878",
"data": "0x9846cd9e",
"value": "0",
"chainId": 8453
}{
"to": "0x4bBFD120d9f352A0BEd7a014bd67913a2007a878",
"data": "0x9846cd9e",
"value": "0",
"chainId": 8453
}| Error | Selector | Meaning |
|---|---|---|
| | Cooldown not elapsed. Param = seconds remaining. |
| | You already hold the flag. |
current_time - lastYoinkedAt() >= 600| 错误类型 | 选择器 | 含义 |
|---|---|---|
| | 冷却时间未结束。参数=剩余秒数。 |
| | 你当前已持有旗帜。 |
current_time - lastYoinkedAt() >= 600lastYoinkedBy()lastYoinkedAt()lastYoinkedBy()score(address)lastYoinkedBy()lastYoinkedAt()lastYoinkedBy()score(address)