bitxhub/internal/coreapi/account.go

16 lines
351 B
Go
Raw Normal View History

2020-03-29 21:32:01 +08:00
package coreapi
import (
"github.com/meshplus/bitxhub-kit/types"
"github.com/meshplus/bitxhub/internal/coreapi/api"
"github.com/meshplus/bitxhub/internal/ledger"
)
type AccountAPI CoreAPI
var _ api.AccountAPI = (*AccountAPI)(nil)
func (api *AccountAPI) GetAccount(addr types.Address) *ledger.Account {
return api.bxh.Ledger.GetAccount(addr)
}