Net
Chain base coin (ETH, BNB) APIs
Endpoint
Real Server : https://api.lmtls.io/v1/chain/net
Real Server : https://test-api.lmtls.io/v1/chain/net
getTempKey
Returns a generated tempKey by address
Parameters
address
String
Address
keyType
String
See below keyType section.
keyType
Export Address
exportAddress
Create Token
create
Burn
burn
Transfer
transfer
Approve
approve
Mint
mint
Return Value
tempKey
String
tempKey
Example
getTransactionStatus
Returns a status of transaction.
Parameters
transactionId
String
Transaction Id
Return Value
status
Integer
See below status type.
revertReason
String
Reverted reason, if transaction fail.
Status type
1
Success
0
Fail
2
Invalid
-1
Pending or invalid Transaction Id
Example
getBalance
Return an address ETH / BNB balance.
Parameters
address
String
Address
Return Value
balance
BigDecimal
balance of address.
Example
getGasPrice
Returns the average gas value from the corresponding Onchain.
Parameters
Return Value
gasPrice
BigDecimal
gasPrice
Example
transfer
Transfer ETH / BNB from from-address to to-address.
Parameters
sender
String
Sender address
toAddress
String
To address
amount
BigDecimal
Transfer amount.
tempKey
String
tempKey for "transfer"
hashKey
String
hash(tempKey | fromAddress' secretKey)
signature
String
sign( hash (sender | toAddress | amount | tempKey | hashKey) ) by formAddress's privateKey using signData API
gasPrice
BigDecimal
gasPrice.
nonce
BigInteger
nonce value. If it is null, it will be filled in automatically.
If acceleration is needed, use the nonce value generated when performing the transaction and use a higher gasPrice than the previous transaction.
Return Value
transactionId
String
Transaction Id
nonce
BigInteger
nonce value
A transactionId is returned, but that doesn't mean it has been added to the Block yet. You should check that the status is 1 by using getTransactionStatus.
Example
Last updated