Versions in this module Expand all Collapse all v0 v0.2.1 Mar 9, 2024 v0.2.0 Oct 17, 2023 v0.1.0 Nov 23, 2022 v0.0.6 Jun 30, 2022 Changes in this version + const NftTxTypeCasting + const NftTxTypeDestroy + const NftTxTypeError + const NftTxTypeIrrelevant + const NftTxTypeTransfer + const NftVinPushedDataCount + const NftVoutLen + var NftVoutScriptPrefix = []byte + func ParseNftVoutScript(pkScript []byte) (btcutil.Address, error) + func ToJSONStr(i interface{}) string + type AddressBadgeCodePair struct + Address string + BadgeCode string + type AddressIndexPair struct + Address string + Index int type Client + func (c *Client) DeserializeRawTx(rawTx string) (*wire.MsgTx, error) + func (c *Client) GetMerkleProof(txHash *chainhash.Hash) (*MerkelProof, error) + func (c *Client) GetMerkleProofByHashStr(txID string) (*MerkelProof, error) + func (c *Client) GetMsgTx(hash *chainhash.Hash) (*wire.MsgTx, error) + func (c *Client) GetMsgTxByStr(txID string) (*wire.MsgTx, error) + func (c *Client) GetNftReceiveAddresses(msgTx *wire.MsgTx) ([]*AddressBadgeCodePair, error) + func (c *Client) GetNftReceiveAddressesByTxidStr(txID string) ([]*AddressBadgeCodePair, error) + func (c *Client) SerializeRawTx(tx *wire.MsgTx) string + func (c *Client) TransferNftToAddress(txID string, address string, name string, description string, picURL string) (*TransferNftToAddressData, error) + func (c *Client) VerifyCastingNftTransaction(msgTx *wire.MsgTx) (bool, error) + func (c *Client) VerifyCastingNftTransactionByRawTx(rawTx string) (bool, error) + func (c *Client) VerifyCastingNftTransactionByTxid(txID string) (bool, error) + func (c *Client) VerifyMerkleProof(txID string, nIndex int, nodes []string, exceptMerkleRoot string) bool + func (c *Client) VerifyNftCastingOpReturn(msgTx *wire.MsgTx) bool + type GetMerkleProofRequest struct + Txid string + type GetMerkleProofResponse struct + Data struct{ ... } + type GetRawTransactionRequest struct + TxID string + type GetRawTransactionResponse struct + Data struct{ ... } + type MerkelProof struct + Flags int + Index int + Nodes []string + Target *Target + TxOrID string + type MsgTxInfo struct + BlockHash string + Height int64 + MsgTx *wire.MsgTx + RawTx string + Timestamp int64 + type NftAuthInfo struct + Pub []byte + Sig []byte type NftMintData + BadgePath []string + TxID string + type NftTxInfo struct + NftOutPoints []*AddressIndexPair + NftPreOutPoints []*TxIDIndexPair + TxID string + Type int + type Target struct + Bits string + Chainwork string + Confirmations int + Difficulty float64 + Hash string + Height int + Mediantime int + Merkleroot string + Nextblockhash string + Nonce int + NumTx int + Previousblockhash string + Time int + Version int + VersionHex string + type TransferNftToAddressData struct + Fee int64 + FeeStr string + type TxIDIndexPair struct + Index int + TxID string v0.0.5 Mar 30, 2022 Changes in this version type Client + func (c *Client) GetNft(Txid string) (*NftData, error) + func (c *Client) MintNft(CodeHash string, Param string) (*NftMintData, error) + type NftData struct + CodeHash string + Param string + type NftMintData struct + Fee int64 + FeeStr string + Txid string v0.0.4 Nov 8, 2021 v0.0.3 Jul 30, 2021 v0.0.2 Jul 8, 2021 v0.0.1 Jul 8, 2021 Changes in this version + const CoinTypeBSV + const CoinTypeBTC + const CoinTypeETH + const ScopeAutoPayBSV + const ScopeAutoPayBTC + const ScopeAutoPayETH + const ScopeUserInfo + func UserAgent() string + func Version() string + type Client struct + func NewClient(opts ...ClientOps) (*Client, error) + func (c *Client) GetAuthorizeURL(state string, scopes []string) string + func (c *Client) GetUserAgent() string + func (c *Client) GetUserToken(code string) (*DotAccessToken, error) + func (c *Client) IsTokenExpired(token *DotAccessToken) bool + func (c *Client) NewState() (string, error) + func (c *Client) RefreshUserToken(token *DotAccessToken) (*DotAccessToken, error) + func (c *Client) Request(httpMethod string, requestEndpoint string, data interface{}, expectedCode int, ...) (response *StandardResponse, err error) + func (c *Client) Token() *DotAccessToken + func (c *Client) UpdateApplicationAccessToken() error + func (c *Client) UserInfo(userToken *DotAccessToken) (*User, error) + func (c *Client) UserReceiveAddress(userID string, coinType coinType) (*Wallets, error) + type ClientOps func(c *clientOptions) + func WithApplicationAccessToken(token DotAccessToken) ClientOps + func WithAutoLoadToken() ClientOps + func WithCredentials(clientID, clientSecret string) ClientOps + func WithCustomHTTPClient(client *resty.Client) ClientOps + func WithCustomHeaders(headers map[string][]string) ClientOps + func WithHTTPTimeout(timeout time.Duration) ClientOps + func WithHost(host string) ClientOps + func WithRedirectURI(redirectURI string) ClientOps + func WithRequestTracing() ClientOps + func WithRetryCount(retries int) ClientOps + func WithUserAgent(userAgent string) ClientOps + type DotAccessToken struct + AccessToken string + ExpiresAt int64 + ExpiresIn int64 + RefreshToken string + RefreshTokenExpiresAt int64 + RefreshTokenExpiresIn int64 + Scopes []string + TokenType string + type Error struct + Data interface{} + Method string + RequestID string + URL string + type StandardResponse struct + Body []byte + Error *Error + StatusCode int + Tracing resty.TraceInfo + type User struct + Avatar string + ID string + Nickname string + WebWalletAddress *webWalletAddress + type Wallets struct + AutopayWallet *walletInfo + PrimaryWallet *walletInfo