UnfreezeBalance gRPC Method
Parameters
from
string
REQUIRED
Loading...
delegateTo
string
REQUIRED
Loading...
resource
string
REQUIRED
Loading...
Returns
transaction
object
Loading...
raw_data
object
Loading...
ref_block_bytes
string
Loading...
ref_block_num
integer
Loading...
ref_block_hash
string
Loading...
expiration
integer
Loading...
auths
array
Loading...
data
string
Loading...
contract
array
Loading...
type
string
Loading...
parameter
object
Loading...
value
string
Loading...
type_url
string
Loading...
provider
string
Loading...
ContractName
string
Loading...
Permission_id
integer
Loading...
scripts
string
Loading...
timestamp
integer
Loading...
fee_limit
integer
Loading...
signature
array
Loading...
ret
array
Loading...
fee
integer
Loading...
ret
string
Loading...
contractRet
string
Loading...
assetIssueID
string
Loading...
withdraw_amount
integer
Loading...
unfreeze_amount
integer
Loading...
exchange_received_amount
integer
Loading...
exchange_inject_another_amount
integer
Loading...
exchange_withdraw_another_amount
integer
Loading...
exchange_id
integer
Loading...
shielded_transaction_fee
integer
Loading...
orderId
string
Loading...
orderDetails
array
Loading...
makerOrderId
string
Loading...
takerOrderId
string
Loading...
fillSellQuantity
integer
Loading...
fillBuyQuantity
integer
Loading...
withdraw_expire_amount
integer
Loading...
cancelUnfreezeV2Amount
object
Loading...
txid
string
Loading...
constant_result
array
Loading...
result
object
Loading...
result
boolean
Loading...
code
string
Loading...
message
string
Loading...
energy_used
integer
Loading...
logs
array
Loading...
address
string
Loading...
topics
array
Loading...
data
string
Loading...
internal_transactions
array
Loading...
hash
string
Loading...
caller_address
string
Loading...
transferTo_address
string
Loading...
callValueInfo
array
Loading...
callValue
integer
Loading...
tokenId
string
Loading...
note
string
Loading...
rejected
boolean
Loading...
extra
string
Loading...
energy_penalty
integer
Loading...
Request
1package main23import (4"context"5"crypto/tls"6"fmt"7"encoding/json"89"github.com/fbsobreira/gotron-sdk/pkg/client"10"github.com/fbsobreira/gotron-sdk/pkg/proto/core"11"google.golang.org/grpc"12"google.golang.org/grpc/credentials"13)141516// Quicknode endpoints consist of two crucial components: the endpoint name and the corresponding token17// For eg: QN Endpoint: https://docs-demo.tron-mainnet.quiknode.pro/abcde12345678918// endpoint will be: docs-demo.tron-mainnet.quiknode.pro:50051 {50051 is the port number for Tron gRPC}19// token will be : abcde1234567892021var token = "YOUR_TOKEN"22var endpoint = "YOUR_ENDPOINT:50051"232425type auth struct {26token string27}2829func (a *auth) GetRequestMetadata(ctx context.Context, uri ...string) (map[string]string, error) {30return map[string]string{31"x-token": a.token,32}, nil33}3435func (a *auth) RequireTransportSecurity() bool {36return false37}3839func main() {40opts := []grpc.DialOption{41grpc.WithTransportCredentials(credentials.NewTLS(&tls.Config{})),42grpc.WithPerRPCCredentials(&auth{token}),43}44conn := client.NewGrpcClient(endpoint)45if err := conn.Start(opts...); err != nil {46panic(err)47}48defer conn.Conn.Close()4950accountAddress := "TJNtFduS4oebw3jgGKCYmgSpTdyPieb6Ha"51delegateToAddress := "DELEGATE_TO_ADDRESS"52resourceType := core.ResourceCode_ENERGY535455response, err := conn.UnfreezeBalance(accountAddress, delegateToAddress, resourceType)56if err != nil {57fmt.Printf("Error calling UnfreezeBalance: %v\n", err)58return59}6061fmt.Println("UnfreezeBalance Response:")62jsonData, err := json.MarshalIndent(response, "", " ")63if err != nil {64fmt.Printf("Error marshaling to JSON: %v\n", err)65return66}6768fmt.Println(string(jsonData))69}
1package main23import (4"context"5"crypto/tls"6"fmt"7"encoding/json"89"github.com/fbsobreira/gotron-sdk/pkg/client"10"github.com/fbsobreira/gotron-sdk/pkg/proto/core"11"google.golang.org/grpc"12"google.golang.org/grpc/credentials"13)141516// Quicknode endpoints consist of two crucial components: the endpoint name and the corresponding token17// For eg: QN Endpoint: https://docs-demo.tron-mainnet.quiknode.pro/abcde12345678918// endpoint will be: docs-demo.tron-mainnet.quiknode.pro:50051 {50051 is the port number for Tron gRPC}19// token will be : abcde1234567892021var token = "YOUR_TOKEN"22var endpoint = "YOUR_ENDPOINT:50051"232425type auth struct {26token string27}2829func (a *auth) GetRequestMetadata(ctx context.Context, uri ...string) (map[string]string, error) {30return map[string]string{31"x-token": a.token,32}, nil33}3435func (a *auth) RequireTransportSecurity() bool {36return false37}3839func main() {40opts := []grpc.DialOption{41grpc.WithTransportCredentials(credentials.NewTLS(&tls.Config{})),42grpc.WithPerRPCCredentials(&auth{token}),43}44conn := client.NewGrpcClient(endpoint)45if err := conn.Start(opts...); err != nil {46panic(err)47}48defer conn.Conn.Close()4950accountAddress := "TJNtFduS4oebw3jgGKCYmgSpTdyPieb6Ha"51delegateToAddress := "DELEGATE_TO_ADDRESS"52resourceType := core.ResourceCode_ENERGY535455response, err := conn.UnfreezeBalance(accountAddress, delegateToAddress, resourceType)56if err != nil {57fmt.Printf("Error calling UnfreezeBalance: %v\n", err)58return59}6061fmt.Println("UnfreezeBalance Response:")62jsonData, err := json.MarshalIndent(response, "", " ")63if err != nil {64fmt.Printf("Error marshaling to JSON: %v\n", err)65return66}6768fmt.Println(string(jsonData))69}
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free