mirror of https://github.com/Qortal/Q-Apps-Utils
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
1.1 KiB
40 lines
1.1 KiB
export const sendCoin = async ( |
|
address: string, |
|
amount: number, |
|
coin: string |
|
) => { |
|
return qortalRequest({ |
|
action: "SEND_COIN", |
|
coin, |
|
destinationAddress: address, |
|
amount, |
|
}); |
|
}; |
|
|
|
export const sendQORT = async (address: string, amount: number) => { |
|
return await sendCoin(address, amount, "QORT"); |
|
}; |
|
|
|
export const sendBitCoin = async (address: string, amount: number) => { |
|
return await sendCoin(address, amount, "BTC"); |
|
}; |
|
|
|
export const sendLiteCoin = async (address: string, amount: number) => { |
|
return await sendCoin(address, amount, "LTC"); |
|
}; |
|
|
|
export const sendDogeCoin = async (address: string, amount: number) => { |
|
return await sendCoin(address, amount, "DOGE"); |
|
}; |
|
|
|
export const sendDigiByte = async (address: string, amount: number) => { |
|
return await sendCoin(address, amount, "DGB"); |
|
}; |
|
|
|
export const sendRavenCoin = async (address: string, amount: number) => { |
|
return await sendCoin(address, amount, "RVN"); |
|
}; |
|
|
|
export const sendPirateChain = async (address: string, amount: number) => { |
|
return await sendCoin(address, amount, "ARRR"); |
|
};
|
|
|