• ExternalAddressesApi - functional programming interface

    Parameters

    Returns {
        broadcastExternalTransaction(networkId, addressId, broadcastExternalTransactionRequest, options?): Promise<((axios?, basePath?) => AxiosPromise<BroadcastExternalTransaction200Response>)>;
        broadcastExternalTransfer(networkId, addressId, transferId, broadcastExternalTransferRequest, options?): Promise<((axios?, basePath?) => AxiosPromise<Transfer>)>;
        createExternalTransfer(networkId, addressId, createExternalTransferRequest, options?): Promise<((axios?, basePath?) => AxiosPromise<Transfer>)>;
        getExternalAddressBalance(networkId, addressId, assetId, options?): Promise<((axios?, basePath?) => AxiosPromise<Balance>)>;
        getExternalTransfer(networkId, addressId, transferId, options?): Promise<((axios?, basePath?) => AxiosPromise<Transfer>)>;
        getFaucetTransaction(networkId, addressId, txHash, options?): Promise<((axios?, basePath?) => AxiosPromise<FaucetTransaction>)>;
        listExternalAddressBalances(networkId, addressId, page?, options?): Promise<((axios?, basePath?) => AxiosPromise<AddressBalanceList>)>;
        requestExternalFaucetFunds(networkId, addressId, assetId?, skipWait?, options?): Promise<((axios?, basePath?) => AxiosPromise<FaucetTransaction>)>;
    }

    • broadcastExternalTransaction:function
      • Broadcast an arbitrary transaction to the node constructed and signed by an external address.

        Parameters

        • networkId: string

          The ID of the network the external address belongs to.

        • addressId: string

          The onchain address of the transaction sender.

        • broadcastExternalTransactionRequest: BroadcastExternalTransactionRequest
        • Optional options: RawAxiosRequestConfig

          Override http request option.

        Returns Promise<((axios?, basePath?) => AxiosPromise<BroadcastExternalTransaction200Response>)>

        Summary

        Broadcast an arbitrary transaction.

        Throws

    • broadcastExternalTransfer:function
      • Broadcast an external address's transfer with a signed payload

        Parameters

        • networkId: string

          The ID of the network the address belongs to

        • addressId: string

          The ID of the address the transfer belongs to

        • transferId: string

          The ID of the transfer to broadcast

        • broadcastExternalTransferRequest: BroadcastExternalTransferRequest
        • Optional options: RawAxiosRequestConfig

          Override http request option.

        Returns Promise<((axios?, basePath?) => AxiosPromise<Transfer>)>

        Summary

        Broadcast an external address' transfer

        Throws

    • createExternalTransfer:function
      • Create a new transfer between addresses.

        Parameters

        • networkId: string

          The ID of the network the address is on

        • addressId: string

          The ID of the address to transfer from

        • createExternalTransferRequest: CreateExternalTransferRequest
        • Optional options: RawAxiosRequestConfig

          Override http request option.

        Returns Promise<((axios?, basePath?) => AxiosPromise<Transfer>)>

        Summary

        Create a new transfer

        Throws

    • getExternalAddressBalance:function
      • Get the balance of an asset in an external address

        Parameters

        • networkId: string

          The ID of the blockchain network

        • addressId: string

          The ID of the address to fetch the balance for

        • assetId: string

          The ID of the asset to fetch the balance for

        • Optional options: RawAxiosRequestConfig

          Override http request option.

        Returns Promise<((axios?, basePath?) => AxiosPromise<Balance>)>

        Summary

        Get the balance of an asset in an external address

        Throws

    • getExternalTransfer:function
      • Get an external address' transfer by ID

        Parameters

        • networkId: string

          The ID of the network the address is on

        • addressId: string

          The ID of the address the transfer belongs to

        • transferId: string

          The ID of the transfer to fetch

        • Optional options: RawAxiosRequestConfig

          Override http request option.

        Returns Promise<((axios?, basePath?) => AxiosPromise<Transfer>)>

        Summary

        Get a external address' transfer

        Throws

    • getFaucetTransaction:function
      • Get the status of a faucet transaction

        Parameters

        • networkId: string

          The ID of the blockchain network

        • addressId: string

          The ID of the address to fetch the faucet transaction for

        • txHash: string

          The hash of the faucet transaction

        • Optional options: RawAxiosRequestConfig

          Override http request option.

        Returns Promise<((axios?, basePath?) => AxiosPromise<FaucetTransaction>)>

        Summary

        Get the status of a faucet transaction

        Throws

    • listExternalAddressBalances:function
      • List all of the balances of an external address

        Parameters

        • networkId: string

          The ID of the blockchain network

        • addressId: string

          The ID of the address to fetch the balance for

        • Optional page: string

          A cursor for pagination across multiple pages of results. Don&#39;t include this parameter on the first call. Use the next_page value returned in a previous response to request subsequent results.

        • Optional options: RawAxiosRequestConfig

          Override http request option.

        Returns Promise<((axios?, basePath?) => AxiosPromise<AddressBalanceList>)>

        Summary

        Get the balances of an external address

        Throws

    • requestExternalFaucetFunds:function
      • Request faucet funds to be sent to external address.

        Parameters

        • networkId: string

          The ID of the wallet the address belongs to.

        • addressId: string

          The onchain address of the address that is being fetched.

        • Optional assetId: string

          The ID of the asset to transfer from the faucet.

        • Optional skipWait: boolean

          Whether to skip waiting for the transaction to be mined. This will become the default behavior in the future.

        • Optional options: RawAxiosRequestConfig

          Override http request option.

        Returns Promise<((axios?, basePath?) => AxiosPromise<FaucetTransaction>)>

        Summary

        Request faucet funds for external address.

        Throws

    Export