GetTransactionByDate()

Get transactions processed during a range of dates by a specific address

Method Signature

func GetTransactionByDate(blockchain string, address string, startDate string, endDate string) map[string]interface{}

Parameters

Name
Type
Description

blockchain

String

Blockchain address in hex

address

String

Wallet address in hex

startDate

String

Date string in "YYYY:MM:DD-HH:mm:ss" format

endDate

String

Date string in "YYYY:MM:DD-HH:mm:ss" format

Example

package main

import (
	"fmt"

	"github.com/circular-protocol/circular-go/circular_protocol_api"
)

func main() {
	var blockchain = "0x8a20baa40c45dc5055aeb26197c203e576ef389d9acb171bd62da11dc5ad72b2"
	var test_addr = "0x8b1dd25076c04c5139acba458f86c69cd2d322c61d19bc28daa3bbd945083738"
	var start_date = "2024:09:21-11:24:43"
	var end_date = "2024:10:22-11:53:55"

	result := circular_protocol_api.GetTransactionByDate(blockchain, test_addr, start_date, end_date)
	fmt.Println(result)
}

Result

The result will be an object of type Map<String, dynamic>

If no transaction is found:

Last updated