토큰 전송
개요
메인넷 토큰 또는 ERC20 토큰의 트랜잭션을 전송합니다.
해당 트랜잭션의 블록체인 탐색기(ex: etherscan) url을 포함합니다.
Parameters
Response
value (array of object)
Example
// parameters
val network = "polygon"
val from = "0x..."
val to = "0x..."
val amount = "0.0001"
val token_id = "0x..."
// 메인넷 토큰 전송
val sendTransaction = sendTransactionAsync(network,
from,
to,
amount)
// ERC-20 전송
val sendTokenTransaction = sendTokenTransactionAsync(network,
from,
to,
amount,
token_id)
println(sendTransaction)
println(sendTokenTransaction)
// sendTokenTransaction result log
/*
{
"result": "OK",
"value": [
{
"transactionHash" : "0x..."
}
]
}
*/
Parameters
Response
value (array of object)
Example
// parameters
let network = "polygon"
let from = "0x..."
let to = "0x..."
let amount = "0.0001"
let token_id = "0x..."
// 메인넷 토큰 전송
let sendTransaction = try await sendTransactionAsync(network: network,
from: from,
to: to,
amount: amount)
// ERC-20 전송
let sendTokenTransaction = try await sendTokenTransactionAsync(network: network,
from: from,
to: to,
amount: amount,
token_id: token_id)
print(sendTransaction)
print(sendTokenTransaction)
// sendTokenTransaction result log
/*
{
"result": "OK",
"value": [
{
"transactionHash" : "0x..."
}
]
}
*/
Last updated