Skip to content

Latest commit

 

History

History
100 lines (49 loc) · 3.85 KB

transfer.md

File metadata and controls

100 lines (49 loc) · 3.85 KB

Module 0x3::transfer

Constants

Function transfer_coin

Transfer amount of coins CoinType from from to to. This public entry function requires the CoinType to have key and store abilities.

public entry fun transfer_coin<CoinType: store, key>(from: &signer, to: address, amount: u256)

Function transfer_coin_to_bitcoin_address

Transfer amount of coins CoinType from from to a Bitcoin Address.

public entry fun transfer_coin_to_bitcoin_address<CoinType: store, key>(from: &signer, to: string::String, amount: u256)

Function transfer_coin_to_multichain_address

Transfer amount of coins CoinType from from to a MultiChainAddress. The MultiChainAddress is represented by multichain_id and raw_address. This public entry function requires the CoinType to have key and store abilities.

public entry fun transfer_coin_to_multichain_address<CoinType: store, key>(from: &signer, multichain_id: u64, raw_address: vector<u8>, amount: u256)

Function transfer_object

Transfer from owned Object<T> to to account.

public entry fun transfer_object<T: store, key>(to: address, obj: object::Object<T>)

Function transfer_object_to_bitcoin_address

Transfer from owned Object<T> to a Bitcoin Address.

public entry fun transfer_object_to_bitcoin_address<T: store, key>(to: string::String, obj: object::Object<T>)