API Transfer

μš”μ²­ μ£Όμ†Œ

POST http://{url}/transfer

Request

ParameterTypeDescription
toAddressstringToken을 전솑받을 μ§€κ°‘ μ£Όμ†Œ
amountnumber or string전솑할 토큰 μˆ˜λŸ‰
  • Example
    {
    "to": "0x1a2s3d...",
    "amount": "100"
    }

Response

  • μ„±κ³΅μ‹œ
    200 μƒνƒœ μ½”λ“œμ™€ νŠΈλžœμž­μ…˜ 결과값을 λ°˜ν™˜ ν•©λ‹ˆλ‹€. λ°˜ν™˜λœ κ°’μ—μ„œ result.hash κ°’μœΌλ‘œ ν•΄λ‹Ή νŠΈλžœμž­μ…˜ ν•΄μ‹œ 값을 μ•Œ 수 μžˆμŠ΅λ‹ˆλ‹€.

  • μ‹€νŒ¨μ‹œ
    417 μƒνƒœ μ½”λ“œμ™€ error μ½”λ“œλ₯Ό λ°˜ν™˜ ν•©λ‹ˆλ‹€.

  • Success Example
    νŠΈλžœμž­μ…˜ 성곡 여뢀와 관계없이 μš”μ²­ν•œ 값에 λŒ€ν•œ νŠΈλžœμž­μ…˜ 값을 λ°˜ν™˜ ν•©λ‹ˆλ‹€.

    {
    "result": {
    "type": 2,
    "chainId": 80001,
    "nonce": 92,
    "maxPriorityFeePerGas": {
    "type": "BigNumber",
    "hex": "0x0760a068ab"
    },
    "maxFeePerGas": {
    "type": "BigNumber",
    "hex": "0x0760a068ab"
    },
    "gasPrice": null,
    "gasLimit": {
    "type": "BigNumber",
    "hex": "0x0493e0"
    },
    "to": "0xCeca5dE7bbB16C951D6c8F7A70ac7caA9E8d34af",
    "value": {
    "type": "BigNumber",
    "hex": "0x00"
    },
    "data": "0xa9059cbb0000000000000000000000006053858641cc482ba3cf07a4ce94c6cd4af564730000000000000000000000000000000000000000000000000de0b6b3a7640000",
    "accessList": [],
    "hash": "0xd943288eb75a086376850179dbcb3e6af644cf70b5e1373308009bd5463a5bbd",
    "v": 0,
    "r": "0x3b86bb8a1941f8b0d2b9e2fe3958cbdc002f99baa53dc96420e8ec119549679b",
    "s": "0x77ad10bc8e45b45491522c430f68d749d66610f2b11c19831d12753b0df0bd18",
    "from": "0x3af0A1d2c053ca2e6072015EdB44Bc57db63a9c6",
    "confirmations": 0
    }
    }