Skip to main content
BETA
HomeIntegration BuilderAPI ReferenceGuidesChangelog
View Mirror World on Github
Join the Discord server

Language:

TransferNativeToken

Transfer ETH to another wallet.

Parameters

to_publickey|string - The receiver address.

amount|int - amount.

action|Action<CommonResponse<TransferSolResponse>> - The callback function of this method is used to receive the results.

Returns

response class - CommonResponse<TransferSolResponse>

Code Example


string to_publickey;
int amount;
MWSDK.Polygon.Wallet.TransferNativeToken(to_publickey, amount, (res) =>
{
CommonResponse<TransferSolResponse> resObj = res;
long code = resObj.code;
string message = resObj.message;
TransferSolResponse transferRes = resObj.data;
//todo...
});

Edit this page on GitHub

Copyright © Mirror World, Inc. 2023
On this page

Home

Integration

Guides

API Reference

Changelog