Sha256: 957bc3545552bc47114aac1a33ef43b68b3d6ca7982baa1027b84004d6886e34
Contents?: true
Size: 1.84 KB
Versions: 1
Compression:
Stored size: 1.84 KB
Contents
require_relative 'base/base' require 'json' class StableCoin < Base # Sending USDC # - Required Parameters # data { # amount : int # address: string # description: string # chain: "BSC" # # } def send_usdc(data) required_parameters = %w[amount address description chain] checked_passed_parameters(required_parameters, data) payload = data.to_json post_request("#{base_url}#{BaseEndpoints::ONCHAIN}/send-usdc", payload) end # Sending USDT # - Required Parameters # data { # amount : int # address: string # description: string # chain: "BSC" # # } def send_usdt(data) required_parameters = %w[amount address description chain] checked_passed_parameters(required_parameters, data) payload = data.to_json post_request("#{base_url}#{BaseEndpoints::ONCHAIN}/send-usdt", payload) end # Creating USDC Address # - Required Parameters # data { # label : string # customerEmail: string # chain: "BSC" # # } def create_usdc_address(data) required_parameters = %w[label customerEmail chain] checked_passed_parameters(required_parameters, data) payload = data.to_json post_request("#{base_url}#{BaseEndpoints::ADDRESS}/generate/usdc", payload) end # Creating USDT Address # - Required Parameters # data { # label : string # customerEmail: string # chain: "BSC" # # } def create_usdt_address(data) required_parameters = %w[label customerEmail chain] checked_passed_parameters(required_parameters, data) payload = data.to_json post_request("#{base_url}#{BaseEndpoints::ADDRESS}/generate/usdt", payload) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
bitnob-0.0.6 | lib/bitnob/objects/stablecoins.rb |